rewored monetix gateawy to port 8084
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -34,7 +34,7 @@ monetix:
|
||||
|
||||
http:
|
||||
callback:
|
||||
address: ":8080"
|
||||
address: ":8084"
|
||||
path: "/monetix/callback"
|
||||
allowed_cidrs: []
|
||||
max_body_bytes: 1048576
|
||||
|
||||
@@ -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 == "" {
|
||||
|
||||
Reference in New Issue
Block a user