From 85fb567ed9ce35dbeeed419e74f6ecfac7756eac Mon Sep 17 00:00:00 2001 From: Stephan D Date: Fri, 5 Dec 2025 03:39:59 +0100 Subject: [PATCH] rewored monetix gateawy to port 8084 --- api/gateway/mntx/README.md | 4 ++-- api/gateway/mntx/config.yml | 2 +- api/gateway/mntx/internal/server/internal/serverimp.go | 2 +- ci/prod/compose/mntx_gateway.dockerfile | 2 +- ci/prod/compose/mntx_gateway.yml | 2 +- frontend/pweb/caddy/Caddyfile | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/api/gateway/mntx/README.md b/api/gateway/mntx/README.md index ba8e2cd..52e5dbb 100644 --- a/api/gateway/mntx/README.md +++ b/api/gateway/mntx/README.md @@ -4,7 +4,7 @@ This service now supports Monetix “payout by card”. ## Runtime entry points - gRPC: `MntxGatewayService.CreateCardPayout` and `GetCardPayoutStatus`. -- Callback HTTP server (default): `:8080/monetix/callback` for Monetix payout status notifications. +- Callback HTTP server (default): `:8084/monetix/callback` for Monetix payout status notifications. - Metrics: Prometheus on `:9404/metrics`. ## Required config/env @@ -13,7 +13,7 @@ This service now supports Monetix “payout by card”. - `MONETIX_PROJECT_ID` – integer project ID - `MONETIX_SECRET_KEY` – signature secret - Optional: `allowed_currencies`, `require_customer_address`, `request_timeout_seconds` -- Callback server: `MNTX_GATEWAY_HTTP_PORT` (exposed as 8080), `http.callback.path`, optional `allowed_cidrs` +- Callback server: `MNTX_GATEWAY_HTTP_PORT` (exposed as 8084), `http.callback.path`, optional `allowed_cidrs` ## Outbound request (CreateCardPayout) Payload is built per Monetix spec: diff --git a/api/gateway/mntx/config.yml b/api/gateway/mntx/config.yml index 8935dcd..ec21cfd 100644 --- a/api/gateway/mntx/config.yml +++ b/api/gateway/mntx/config.yml @@ -34,7 +34,7 @@ monetix: http: callback: - address: ":8080" + address: ":8084" path: "/monetix/callback" allowed_cidrs: [] max_body_bytes: 1048576 diff --git a/api/gateway/mntx/internal/server/internal/serverimp.go b/api/gateway/mntx/internal/server/internal/serverimp.go index fc180d0..963a08d 100644 --- a/api/gateway/mntx/internal/server/internal/serverimp.go +++ b/api/gateway/mntx/internal/server/internal/serverimp.go @@ -226,7 +226,7 @@ type callbackRuntimeConfig struct { func (i *Imp) resolveCallbackConfig(cfg callbackConfig) (callbackRuntimeConfig, error) { addr := strings.TrimSpace(cfg.Address) if addr == "" { - addr = ":8080" + addr = ":8084" } path := strings.TrimSpace(cfg.Path) if path == "" { diff --git a/ci/prod/compose/mntx_gateway.dockerfile b/ci/prod/compose/mntx_gateway.dockerfile index c8ee7c8..f9132bb 100644 --- a/ci/prod/compose/mntx_gateway.dockerfile +++ b/ci/prod/compose/mntx_gateway.dockerfile @@ -37,6 +37,6 @@ COPY api/gateway/mntx/config.yml /app/config.yml COPY api/gateway/mntx/entrypoint.sh /app/entrypoint.sh COPY --from=build /out/mntx-gateway /app/mntx-gateway RUN chmod +x /app/entrypoint.sh -EXPOSE 50075 9404 8080 +EXPOSE 50075 9404 8084 ENTRYPOINT ["/app/entrypoint.sh"] CMD ["/app/mntx-gateway","--config.file","/app/config.yml"] diff --git a/ci/prod/compose/mntx_gateway.yml b/ci/prod/compose/mntx_gateway.yml index ac1ffcb..a60c919 100644 --- a/ci/prod/compose/mntx_gateway.yml +++ b/ci/prod/compose/mntx_gateway.yml @@ -29,7 +29,7 @@ services: ports: - "0.0.0.0:${MNTX_GATEWAY_GRPC_PORT:-50075}:50075" - "0.0.0.0:${MNTX_GATEWAY_METRICS_PORT:-9404}:9404" - - "0.0.0.0:${MNTX_GATEWAY_HTTP_PORT:-8080}:8080" + - "0.0.0.0:${MNTX_GATEWAY_HTTP_PORT:-8084}:8084" healthcheck: test: ["CMD-SHELL","wget -qO- http://localhost:9404/health | grep -q '\"status\":\"ok\"'"] interval: 30s diff --git a/frontend/pweb/caddy/Caddyfile b/frontend/pweb/caddy/Caddyfile index 36b4ecf..966c834 100644 --- a/frontend/pweb/caddy/Caddyfile +++ b/frontend/pweb/caddy/Caddyfile @@ -43,7 +43,7 @@ } handle @monetixSuccess { rewrite * /monetix/callback - reverse_proxy sendico_mntx_gateway:8080 + reverse_proxy sendico_mntx_gateway:8084 header Cache-Control "no-cache, no-store, must-revalidate" } @@ -54,7 +54,7 @@ } handle @monetixFail { rewrite * /monetix/callback - reverse_proxy sendico_mntx_gateway:8080 + reverse_proxy sendico_mntx_gateway:8084 header Cache-Control "no-cache, no-store, must-revalidate" }