runtime:
  shutdown_timeout_seconds: 15

grpc:
  network: tcp
  address: ":50075"
  advertise_host: "sendico_mntx_gateway"
  enable_reflection: true
  enable_health: true

metrics:
  address: ":9404"

database:
  driver: mongodb
  settings:
    host_env: MNTX_GATEWAY_MONGO_HOST
    port_env: MNTX_GATEWAY_MONGO_PORT
    database_env: MNTX_GATEWAY_MONGO_DATABASE
    user_env: MNTX_GATEWAY_MONGO_USER
    password_env: MNTX_GATEWAY_MONGO_PASSWORD
    auth_source_env: MNTX_GATEWAY_MONGO_AUTH_SOURCE
    replica_set_env: MNTX_GATEWAY_MONGO_REPLICA_SET

messaging:
  driver: NATS
  settings:
    url_env: NATS_URL
    host_env: NATS_HOST
    port_env: NATS_PORT
    username_env: NATS_USER
    password_env: NATS_PASSWORD
    broker_name: Monetix Gateway Service
    max_reconnects: 10
    reconnect_wait: 5
    buffer_size: 1024

monetix:
  base_url_env: MONETIX_BASE_URL
  project_id_env: MONETIX_PROJECT_ID
  secret_key_env: MONETIX_SECRET_KEY
  allowed_currencies: ["RUB"]
  require_customer_address: false
  request_timeout_seconds: 15
  status_success: "success"
  status_processing: "processing"

gateway:
  id: "monetix"
  is_enabled: true
  network: "MIR"
  currencies: ["RUB"]
  limits:
    min_amount: "0"

http:
  callback:
    address: ":8084"
    path: "/monetix/callback"
    allowed_cidrs: []
    max_body_bytes: 1048576
