{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6da65bc6-8636-49db-afa7-1125140b2327",
    "slug": "hyperswitch-open-source-stripe-alternati",
    "name": "Hyperswitch - Open-Source Stripe Alternative (Payments Router)",
    "description": "Self-host hyperswitch on Railway. Open-source Stripe alternative in Rust.",
    "url": "https://railway.com/deploy/hyperswitch-open-source-stripe-alternati",
    "upstream": {
      "image": "juspaydotin/hyperswitch-control-center"
    }
  },
  "services": [
    {
      "name": "hyperswitch-control-center",
      "source": {
        "image": "juspaydotin/hyperswitch-control-center"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "hyperswitch-router",
      "source": {
        "repo": "https://github.com/XavTo/Hyperswitch"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:7-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "hyperswitch-web",
      "source": {
        "repo": "https://github.com/XavTo/hyperswitch-web"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "tcp_ports": [
        5432
      ],
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "default__server__host",
      "service": "hyperswitch-control-center",
      "description": "Bind address inside the container, must stay 0.0.0.0 for Railway to route traffic",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "default__server__port",
      "service": "hyperswitch-control-center",
      "description": "Internal port the Control Center listens on, exposed via Railway target port",
      "secret": false,
      "strategy": "default",
      "default": "9000"
    },
    {
      "key": "default__features__email",
      "service": "hyperswitch-control-center",
      "description": "Disable email-based features (password reset, invites) since no SMTP is configured in this template",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "default__endpoints__api_url",
      "service": "hyperswitch-control-center",
      "description": "Public URL of the Hyperswitch router service, used by the Control Center frontend to call the API",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "default__endpoints__sdk_url",
      "service": "hyperswitch-control-center",
      "description": "Public URL of the Web SDK loader, used by the Control Center to embed the checkout preview",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ROUTER__REDIS__HOST",
      "service": "hyperswitch-router",
      "description": "Redis host on private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ROUTER__REDIS__PORT",
      "service": "hyperswitch-router",
      "description": "Redis port",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "ROUTER__SERVER__HOST",
      "service": "hyperswitch-router",
      "description": "Bind address for Railway",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "ROUTER__SERVER__PORT",
      "service": "hyperswitch-router",
      "description": "Internal port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "ROUTER__USER__BASE_URL",
      "service": "hyperswitch-router",
      "description": "Public URL for user redirects",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ROUTER__SERVER__WORKERS",
      "service": "hyperswitch-router",
      "description": "Worker threads count",
      "secret": false,
      "strategy": "default",
      "default": "4"
    },
    {
      "key": "ROUTER__REDIS__POOL_SIZE",
      "service": "hyperswitch-router",
      "description": "Redis connection pool size",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "ROUTER__SERVER__BASE_URL",
      "service": "hyperswitch-router",
      "description": "Public URL of the router",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ROUTER__ANALYTICS__SOURCE",
      "service": "hyperswitch-router",
      "description": "Analytics backend (Postgres, no ClickHouse needed)",
      "secret": false,
      "strategy": "default",
      "default": "sqlx"
    },
    {
      "key": "ROUTER__REDIS__DEFAULT_TTL",
      "service": "hyperswitch-router",
      "description": "Default cache TTL in seconds",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "ROUTER__LOCKER__MOCK_LOCKER",
      "service": "hyperswitch-router",
      "description": "Mock PCI vault for dev/test only",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ROUTER__LOG__CONSOLE__LEVEL",
      "service": "hyperswitch-router",
      "description": "Log verbosity",
      "secret": false,
      "strategy": "default",
      "default": "INFO"
    },
    {
      "key": "ROUTER__SECRETS__JWT_SECRET",
      "service": "hyperswitch-router",
      "description": "Auto-generated JWT signing secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ROUTER__USER__FORCE_COOKIES",
      "service": "hyperswitch-router",
      "description": "Use Bearer header instead of cookies (cross-domain safe)",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ROUTER__REDIS__AUTO_PIPELINE",
      "service": "hyperswitch-router",
      "description": "Pipeline Redis commands for perf",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ROUTER__ANALYTICS__SQLX__HOST",
      "service": "hyperswitch-router",
      "description": "Analytics DB host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ROUTER__ANALYTICS__SQLX__PORT",
      "service": "hyperswitch-router",
      "description": "Analytics DB port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "ROUTER__LOG__CONSOLE__ENABLED",
      "service": "hyperswitch-router",
      "description": "Enable stdout logging",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ROUTER__MASTER_DATABASE__HOST",
      "service": "hyperswitch-router",
      "description": "Main DB host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ROUTER__MASTER_DATABASE__PORT",
      "service": "hyperswitch-router",
      "description": "Main DB port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "ROUTER__REDIS__MAX_FEED_COUNT",
      "service": "hyperswitch-router",
      "description": "Max items per Redis stream read",
      "secret": false,
      "strategy": "default",
      "default": "200"
    },
    {
      "key": "ROUTER__LOCKER__LOCKER_ENABLED",
      "service": "hyperswitch-router",
      "description": "Disable real card vault",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ROUTER__REDIS__CLUSTER_ENABLED",
      "service": "hyperswitch-router",
      "description": "Single-node Redis mode",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ROUTER__REDIS__REQUEST_TIMEOUT",
      "service": "hyperswitch-router",
      "description": "Redis request timeout in seconds",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "ROUTER__REPLICA_DATABASE__HOST",
      "service": "hyperswitch-router",
      "description": "Read replica host (same as master here)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "ROUTER__REPLICA_DATABASE__PORT",
      "service": "hyperswitch-router",
      "description": "Read replica port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "ROUTER__SECRETS__ADMIN_API_KEY",
      "service": "hyperswitch-router",
      "description": "Auto-generated admin API key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ROUTER__USER__TOTP_ISSUER_NAME",
      "service": "hyperswitch-router",
      "description": "2FA issuer name shown in authenticator apps",
      "secret": false,
      "strategy": "default",
      "default": "Hyperswitch"
    },
    {
      "key": "ROUTER__ANALYTICS__SQLX__DBNAME",
      "service": "hyperswitch-router",
      "description": "Analytics DB name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ROUTER__MASTER_DATABASE__DBNAME",
      "service": "hyperswitch-router",
      "description": "Main DB name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ROUTER__SECRETS__MASTER_ENC_KEY",
      "service": "hyperswitch-router",
      "description": "Auto-generated encryption master key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ROUTER__LOG__CONSOLE__LOG_FORMAT",
      "service": "hyperswitch-router",
      "description": "Structured JSON logs",
      "secret": false,
      "strategy": "default",
      "default": "json"
    },
    {
      "key": "ROUTER__REDIS__STREAM_READ_COUNT",
      "service": "hyperswitch-router",
      "description": "Redis stream read batch size",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "ROUTER__REPLICA_DATABASE__DBNAME",
      "service": "hyperswitch-router",
      "description": "Read replica DB name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ROUTER__ANALYTICS__SQLX__PASSWORD",
      "service": "hyperswitch-router",
      "description": "Analytics DB password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ROUTER__ANALYTICS__SQLX__USERNAME",
      "service": "hyperswitch-router",
      "description": "Analytics DB user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ROUTER__MASTER_DATABASE__PASSWORD",
      "service": "hyperswitch-router",
      "description": "Main DB password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ROUTER__MASTER_DATABASE__USERNAME",
      "service": "hyperswitch-router",
      "description": "Main DB user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ROUTER__REDIS__USE_LEGACY_VERSION",
      "service": "hyperswitch-router",
      "description": "Use modern Redis protocol (RESP3)",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ROUTER__ANALYTICS__SQLX__POOL_SIZE",
      "service": "hyperswitch-router",
      "description": "Analytics connection pool size",
      "secret": false,
      "strategy": "default",
      "default": "3"
    },
    {
      "key": "ROUTER__MASTER_DATABASE__POOL_SIZE",
      "service": "hyperswitch-router",
      "description": "Main DB connection pool size",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "ROUTER__REPLICA_DATABASE__PASSWORD",
      "service": "hyperswitch-router",
      "description": "Read replica password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ROUTER__REPLICA_DATABASE__USERNAME",
      "service": "hyperswitch-router",
      "description": "Read replica user",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ROUTER__SERVER__REQUEST_BODY_LIMIT",
      "service": "hyperswitch-router",
      "description": "Max request body size in bytes",
      "secret": false,
      "strategy": "default",
      "default": "16384"
    },
    {
      "key": "ROUTER__REDIS__UNRESPONSIVE_TIMEOUT",
      "service": "hyperswitch-router",
      "description": "Redis health check timeout",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "ROUTER__REPLICA_DATABASE__POOL_SIZE",
      "service": "hyperswitch-router",
      "description": "Read replica connection pool size",
      "secret": false,
      "strategy": "default",
      "default": "5"
    },
    {
      "key": "ROUTER__USER__FORCE_TWO_FACTOR_AUTH",
      "service": "hyperswitch-router",
      "description": "Disable mandatory 2FA for users",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ROUTER__SECRETS__RECON_ADMIN_API_KEY",
      "service": "hyperswitch-router",
      "description": "Auto-generated reconciliation admin key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "ROUTER__REDIS__MAX_IN_FLIGHT_COMMANDS",
      "service": "hyperswitch-router",
      "description": "Max concurrent Redis commands",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "ROUTER__REDIS__DEFAULT_COMMAND_TIMEOUT",
      "service": "hyperswitch-router",
      "description": "Default Redis command timeout",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "ROUTER__USER__PASSWORD_VALIDITY_IN_DAYS",
      "service": "hyperswitch-router",
      "description": "Password expiry policy",
      "secret": true,
      "strategy": "default",
      "default": "90"
    },
    {
      "key": "ROUTER__REDIS__DISABLE_AUTO_BACKPRESSURE",
      "service": "hyperswitch-router",
      "description": "Enable Redis backpressure handling",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "ROUTER__ANALYTICS__SQLX__CONNECTION_TIMEOUT",
      "service": "hyperswitch-router",
      "description": "Analytics DB connect timeout",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "ROUTER__MASTER_DATABASE__CONNECTION_TIMEOUT",
      "service": "hyperswitch-router",
      "description": "Main DB connect timeout",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "ROUTER__REPLICA_DATABASE__CONNECTION_TIMEOUT",
      "service": "hyperswitch-router",
      "description": "Read replica connect timeout",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "ROUTER__USER__TWO_FACTOR_AUTH_EXPIRY_IN_SECS",
      "service": "hyperswitch-router",
      "description": "2FA code validity duration",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "PORT",
      "service": "hyperswitch-web",
      "description": "Internal port served by http-server",
      "secret": false,
      "strategy": "default",
      "default": "9050"
    },
    {
      "key": "envSdkUrl",
      "service": "hyperswitch-web",
      "description": "Public URL of this Web SDK service, baked into the bundle at build time",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "envBackendUrl",
      "service": "hyperswitch-web",
      "description": "Public URL of the router, baked into the SDK so it calls your own backend",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Postgres data directory inside the container",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Internal hostname for service-to-service connections",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Standard Postgres port",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "DB user (alias of POSTGRES_USER)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "DB name (alias of POSTGRES_DB)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "DB password (alias of POSTGRES_PASSWORD)",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database name created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Internal connection string for other Railway services",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Default superuser name",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate validity in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated 32-char password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "External connection string for tools like psql or pgAdmin",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Graceful shutdown window before stopping the container",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "hyperswitch-open-source-stripe-alternati"
      }
    },
    "cli": "railway deploy --template hyperswitch-open-source-stripe-alternati",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6da65bc6-8636-49db-afa7-1125140b2327",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "23703dc9-cc28-4bb8-9009-56ad029e33e9": {
                  "icon": "https://avatars.githubusercontent.com/u/11497632?s=48&v=4",
                  "name": "hyperswitch-control-center",
                  "deploy": {
                    "startCommand": "node dist/server/server.js",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "juspaydotin/hyperswitch-control-center"
                  },
                  "variables": {
                    "default__server__host": {
                      "isOptional": false,
                      "description": "Bind address inside the container, must stay 0.0.0.0 for Railway to route traffic",
                      "defaultValue": "0.0.0.0"
                    },
                    "default__server__port": {
                      "isOptional": false,
                      "description": "Internal port the Control Center listens on, exposed via Railway target port",
                      "defaultValue": "9000"
                    },
                    "default__features__email": {
                      "isOptional": false,
                      "description": "Disable email-based features (password reset, invites) since no SMTP is configured in this template",
                      "defaultValue": "false"
                    },
                    "default__endpoints__api_url": {
                      "isOptional": false,
                      "description": "Public URL of the Hyperswitch router service, used by the Control Center frontend to call the API",
                      "defaultValue": "https://${{hyperswitch-router.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "default__endpoints__sdk_url": {
                      "isOptional": false,
                      "description": "Public URL of the Web SDK loader, used by the Control Center to embed the checkout preview",
                      "defaultValue": "https://${{hyperswitch-web.RAILWAY_PUBLIC_DOMAIN}}/HyperLoader.js"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:9000": {
                        "port": 9000
                      }
                    }
                  }
                },
                "47b420e6-7cba-40e0-927c-d17cc64bb76c": {
                  "icon": "https://avatars.githubusercontent.com/u/11497632?s=48&v=4",
                  "name": "hyperswitch-router",
                  "deploy": {
                    "startCommand": "/entrypoint.sh",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/XavTo/Hyperswitch",
                    "rootDirectory": null
                  },
                  "variables": {
                    "ROUTER__REDIS__HOST": {
                      "isOptional": false,
                      "description": "Redis host on private network",
                      "defaultValue": "${{Redis.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "ROUTER__REDIS__PORT": {
                      "isOptional": false,
                      "description": "Redis port",
                      "defaultValue": "6379"
                    },
                    "ROUTER__SERVER__HOST": {
                      "isOptional": false,
                      "description": "Bind address for Railway",
                      "defaultValue": "0.0.0.0"
                    },
                    "ROUTER__SERVER__PORT": {
                      "isOptional": false,
                      "description": "Internal port",
                      "defaultValue": "8080"
                    },
                    "ROUTER__USER__BASE_URL": {
                      "isOptional": false,
                      "description": "Public URL for user redirects",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "ROUTER__SERVER__WORKERS": {
                      "isOptional": false,
                      "description": "Worker threads count",
                      "defaultValue": "4"
                    },
                    "ROUTER__REDIS__POOL_SIZE": {
                      "isOptional": false,
                      "description": "Redis connection pool size",
                      "defaultValue": "5"
                    },
                    "ROUTER__SERVER__BASE_URL": {
                      "isOptional": false,
                      "description": "Public URL of the router",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "ROUTER__ANALYTICS__SOURCE": {
                      "isOptional": false,
                      "description": "Analytics backend (Postgres, no ClickHouse needed)",
                      "defaultValue": "sqlx"
                    },
                    "ROUTER__REDIS__DEFAULT_TTL": {
                      "isOptional": false,
                      "description": "Default cache TTL in seconds",
                      "defaultValue": "300"
                    },
                    "ROUTER__LOCKER__MOCK_LOCKER": {
                      "isOptional": false,
                      "description": "Mock PCI vault for dev/test only",
                      "defaultValue": "true"
                    },
                    "ROUTER__LOG__CONSOLE__LEVEL": {
                      "isOptional": false,
                      "description": "Log verbosity",
                      "defaultValue": "INFO"
                    },
                    "ROUTER__SECRETS__JWT_SECRET": {
                      "isOptional": false,
                      "description": "Auto-generated JWT signing secret",
                      "defaultValue": "{{ROUTER__SECRETS__JWT_SECRET}}"
                    },
                    "ROUTER__USER__FORCE_COOKIES": {
                      "isOptional": false,
                      "description": "Use Bearer header instead of cookies (cross-domain safe)",
                      "defaultValue": "false"
                    },
                    "ROUTER__REDIS__AUTO_PIPELINE": {
                      "isOptional": false,
                      "description": "Pipeline Redis commands for perf",
                      "defaultValue": "true"
                    },
                    "ROUTER__ANALYTICS__SQLX__HOST": {
                      "isOptional": false,
                      "description": "Analytics DB host",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "ROUTER__ANALYTICS__SQLX__PORT": {
                      "isOptional": false,
                      "description": "Analytics DB port",
                      "defaultValue": "5432"
                    },
                    "ROUTER__LOG__CONSOLE__ENABLED": {
                      "isOptional": false,
                      "description": "Enable stdout logging",
                      "defaultValue": "true"
                    },
                    "ROUTER__MASTER_DATABASE__HOST": {
                      "isOptional": false,
                      "description": "Main DB host",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "ROUTER__MASTER_DATABASE__PORT": {
                      "isOptional": false,
                      "description": "Main DB port",
                      "defaultValue": "5432"
                    },
                    "ROUTER__REDIS__MAX_FEED_COUNT": {
                      "isOptional": false,
                      "description": "Max items per Redis stream read",
                      "defaultValue": "200"
                    },
                    "ROUTER__LOCKER__LOCKER_ENABLED": {
                      "isOptional": false,
                      "description": "Disable real card vault",
                      "defaultValue": "false"
                    },
                    "ROUTER__REDIS__CLUSTER_ENABLED": {
                      "isOptional": false,
                      "description": "Single-node Redis mode",
                      "defaultValue": "false"
                    },
                    "ROUTER__REDIS__REQUEST_TIMEOUT": {
                      "isOptional": false,
                      "description": "Redis request timeout in seconds",
                      "defaultValue": "5"
                    },
                    "ROUTER__REPLICA_DATABASE__HOST": {
                      "isOptional": false,
                      "description": "Read replica host (same as master here)",
                      "defaultValue": "${{Postgres.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "ROUTER__REPLICA_DATABASE__PORT": {
                      "isOptional": false,
                      "description": "Read replica port",
                      "defaultValue": "5432"
                    },
                    "ROUTER__SECRETS__ADMIN_API_KEY": {
                      "isOptional": false,
                      "description": "Auto-generated admin API key",
                      "defaultValue": "{{ROUTER__SECRETS__ADMIN_API_KEY}}"
                    },
                    "ROUTER__USER__TOTP_ISSUER_NAME": {
                      "isOptional": false,
                      "description": "2FA issuer name shown in authenticator apps",
                      "defaultValue": "Hyperswitch"
                    },
                    "ROUTER__ANALYTICS__SQLX__DBNAME": {
                      "isOptional": false,
                      "description": "Analytics DB name",
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "ROUTER__MASTER_DATABASE__DBNAME": {
                      "isOptional": false,
                      "description": "Main DB name",
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "ROUTER__SECRETS__MASTER_ENC_KEY": {
                      "isOptional": false,
                      "description": "Auto-generated encryption master key",
                      "defaultValue": "{{ROUTER__SECRETS__MASTER_ENC_KEY}}"
                    },
                    "ROUTER__LOG__CONSOLE__LOG_FORMAT": {
                      "isOptional": false,
                      "description": "Structured JSON logs",
                      "defaultValue": "json"
                    },
                    "ROUTER__REDIS__STREAM_READ_COUNT": {
                      "isOptional": false,
                      "description": "Redis stream read batch size",
                      "defaultValue": "1"
                    },
                    "ROUTER__REPLICA_DATABASE__DBNAME": {
                      "isOptional": false,
                      "description": "Read replica DB name",
                      "defaultValue": "${{Postgres.POSTGRES_DB}}"
                    },
                    "ROUTER__ANALYTICS__SQLX__PASSWORD": {
                      "isOptional": false,
                      "description": "Analytics DB password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "ROUTER__ANALYTICS__SQLX__USERNAME": {
                      "isOptional": false,
                      "description": "Analytics DB user",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "ROUTER__MASTER_DATABASE__PASSWORD": {
                      "isOptional": false,
                      "description": "Main DB password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "ROUTER__MASTER_DATABASE__USERNAME": {
                      "isOptional": false,
                      "description": "Main DB user",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "ROUTER__REDIS__USE_LEGACY_VERSION": {
                      "isOptional": false,
                      "description": "Use modern Redis protocol (RESP3)",
                      "defaultValue": "false"
                    },
                    "ROUTER__ANALYTICS__SQLX__POOL_SIZE": {
                      "isOptional": false,
                      "description": "Analytics connection pool size",
                      "defaultValue": "3"
                    },
                    "ROUTER__MASTER_DATABASE__POOL_SIZE": {
                      "isOptional": false,
                      "description": "Main DB connection pool size",
                      "defaultValue": "5"
                    },
                    "ROUTER__REPLICA_DATABASE__PASSWORD": {
                      "isOptional": false,
                      "description": "Read replica password",
                      "defaultValue": "${{Postgres.POSTGRES_PASSWORD}}"
                    },
                    "ROUTER__REPLICA_DATABASE__USERNAME": {
                      "isOptional": false,
                      "description": "Read replica user",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "ROUTER__SERVER__REQUEST_BODY_LIMIT": {
                      "isOptional": false,
                      "description": "Max request body size in bytes",
                      "defaultValue": "16384"
                    },
                    "ROUTER__REDIS__UNRESPONSIVE_TIMEOUT": {
                      "isOptional": false,
                      "description": "Redis health check timeout",
                      "defaultValue": "10"
                    },
                    "ROUTER__REPLICA_DATABASE__POOL_SIZE": {
                      "isOptional": false,
                      "description": "Read replica connection pool size",
                      "defaultValue": "5"
                    },
                    "ROUTER__USER__FORCE_TWO_FACTOR_AUTH": {
                      "isOptional": false,
                      "description": "Disable mandatory 2FA for users",
                      "defaultValue": "false"
                    },
                    "ROUTER__SECRETS__RECON_ADMIN_API_KEY": {
                      "isOptional": false,
                      "description": "Auto-generated reconciliation admin key",
                      "defaultValue": "{{ROUTER__SECRETS__RECON_ADMIN_API_KEY}}"
                    },
                    "ROUTER__REDIS__MAX_IN_FLIGHT_COMMANDS": {
                      "isOptional": false,
                      "description": "Max concurrent Redis commands",
                      "defaultValue": "5000"
                    },
                    "ROUTER__REDIS__DEFAULT_COMMAND_TIMEOUT": {
                      "isOptional": false,
                      "description": "Default Redis command timeout",
                      "defaultValue": "30"
                    },
                    "ROUTER__USER__PASSWORD_VALIDITY_IN_DAYS": {
                      "isOptional": false,
                      "description": "Password expiry policy",
                      "defaultValue": "90"
                    },
                    "ROUTER__REDIS__DISABLE_AUTO_BACKPRESSURE": {
                      "isOptional": false,
                      "description": "Enable Redis backpressure handling",
                      "defaultValue": "false"
                    },
                    "ROUTER__ANALYTICS__SQLX__CONNECTION_TIMEOUT": {
                      "isOptional": false,
                      "description": "Analytics DB connect timeout",
                      "defaultValue": "10"
                    },
                    "ROUTER__MASTER_DATABASE__CONNECTION_TIMEOUT": {
                      "isOptional": false,
                      "description": "Main DB connect timeout",
                      "defaultValue": "10"
                    },
                    "ROUTER__REPLICA_DATABASE__CONNECTION_TIMEOUT": {
                      "isOptional": false,
                      "description": "Read replica connect timeout",
                      "defaultValue": "10"
                    },
                    "ROUTER__USER__TWO_FACTOR_AUTH_EXPIRY_IN_SECS": {
                      "isOptional": false,
                      "description": "2FA code validity duration",
                      "defaultValue": "300"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "8bccaa74-e3e7-4bfd-bd6b-9c83136249d2": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:7-alpine"
                  },
                  "variables": {},
                  "volumeMounts": {
                    "8bccaa74-e3e7-4bfd-bd6b-9c83136249d2": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxies",
                      "options": [
                        1,
                        2
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "HAProxy instances routing writes to the primary",
                      "defaultValue": 2
                    },
                    "replica": {
                      "label": "Redis Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "Redis",
                      "description": "Nodes running Redis + colocated Sentinel",
                      "defaultValue": 2
                    },
                    "internal": null,
                    "description": "This will convert your Redis instance to an HA cluster with Sentinel failover and HAProxy routing to the primary."
                  }
                },
                "c0c10e90-629f-41f6-b045-b55b87717c21": {
                  "icon": "https://avatars.githubusercontent.com/u/11497632?s=48&v=4",
                  "name": "hyperswitch-web",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/XavTo/hyperswitch-web",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Internal port served by http-server",
                      "defaultValue": "9050"
                    },
                    "envSdkUrl": {
                      "isOptional": false,
                      "description": "Public URL of this Web SDK service, baked into the bundle at build time",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "envBackendUrl": {
                      "isOptional": false,
                      "description": "Public URL of the router, baked into the SDK so it calls your own backend",
                      "defaultValue": "https://${{hyperswitch-router.RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:9050": {
                        "port": 9050
                      }
                    }
                  }
                },
                "f5515cc1-14b9-4e3c-ab0b-456f3b9c3a3d": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Postgres data directory inside the container",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Internal hostname for service-to-service connections",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Standard Postgres port",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "DB user (alias of POSTGRES_USER)",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "DB name (alias of POSTGRES_DB)",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "DB password (alias of POSTGRES_PASSWORD)",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database name created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Internal connection string for other Railway services",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Default superuser name",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate validity in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated 32-char password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "External connection string for tools like psql or pgAdmin",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/${{PGDATABASE}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Graceful shutdown window before stopping the container",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "5432": {}
                    }
                  },
                  "volumeMounts": {
                    "f5515cc1-14b9-4e3c-ab0b-456f3b9c3a3d": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T16:15:12.787Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-20T14:46:39.702Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_02e49c6bb317416a8c98",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED,BUILDING,SUCCESS,SUCCESS,QUEUED"
      }
    ]
  }
}
