{
  "manifest_version": "1.0.0",
  "template": {
    "id": "36656207-1b6a-4d9f-8a4c-7e790df5483a",
    "slug": "RfKH-J",
    "name": "oauth2-proxy",
    "description": "Reverse proxy that provides auth with Google and more identity providers",
    "url": "https://railway.com/deploy/RfKH-J",
    "upstream": {
      "image": "quay.io/oauth2-proxy/oauth2-proxy:v7.7.0"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "oauth2-proxy",
      "source": {
        "image": "quay.io/oauth2-proxy/oauth2-proxy:v7.7.0"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "OAUTH2_PROXY_CLIENT_ID",
      "service": "oauth2-proxy",
      "description": "Your Provider OAuth Client ID",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "OAUTH2_PROXY_UPSTREAMS",
      "service": "oauth2-proxy",
      "description": "The internal service URL to proxy (e.g., \"http://internal-service:8080\"), note that if you used the RAILWAY_PRIVATE_DOMAIN ref you will need to add the port and the url scheme (e.g., \"http://${{backend.RAILWAY_PRIVATE_DOMAIN}}:8080\")",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "OAUTH2_PROXY_HTTP_ADDRESS",
      "service": "oauth2-proxy",
      "description": "Provide a value for OAUTH2_PROXY_HTTP_ADDRESS.",
      "secret": false,
      "strategy": "default",
      "default": ":4180"
    },
    {
      "key": "OAUTH2_PROXY_REDIRECT_URL",
      "service": "oauth2-proxy",
      "description": "The callback URL for OAuth (e.g., \"https://your-proxy-domain/oauth2/callback\")",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "OAUTH2_PROXY_CLIENT_SECRET",
      "service": "oauth2-proxy",
      "description": "Your Provider OAuth Client Secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OAUTH2_PROXY_COOKIE_SECRET",
      "service": "oauth2-proxy",
      "description": "A secret string to encrypt cookies (generate a random string)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "OAUTH2_PROXY_EMAIL_DOMAINS",
      "service": "oauth2-proxy",
      "description": "The Email Domain to be whitelisted",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "RfKH-J"
      }
    },
    "cli": "railway deploy --template RfKH-J",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "36656207-1b6a-4d9f-8a4c-7e790df5483a",
            "serializedConfig": {
              "services": {
                "a6b76d4e-eab4-498b-ad13-80a125bca66e": {
                  "icon": "https://avatars.githubusercontent.com/u/62798169",
                  "name": "oauth2-proxy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "quay.io/oauth2-proxy/oauth2-proxy:v7.7.0"
                  },
                  "variables": {
                    "OAUTH2_PROXY_PROVIDER": {
                      "isOptional": true,
                      "description": "Set to \"google\" for Google OAuth",
                      "defaultValue": ""
                    },
                    "OAUTH2_PROXY_CLIENT_ID": {
                      "isOptional": false,
                      "description": "Your Provider OAuth Client ID",
                      "defaultValue": "{{OAUTH2_PROXY_CLIENT_ID}}"
                    },
                    "OAUTH2_PROXY_UPSTREAMS": {
                      "isOptional": false,
                      "description": "The internal service URL to proxy (e.g., \"http://internal-service:8080\"), note that if you used the RAILWAY_PRIVATE_DOMAIN ref you will need to add the port and the url scheme (e.g., \"http://${{backend.RAILWAY_PRIVATE_DOMAIN}}:8080\")",
                      "defaultValue": "{{OAUTH2_PROXY_UPSTREAMS}}"
                    },
                    "OAUTH2_PROXY_HTTP_ADDRESS": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": ":4180"
                    },
                    "OAUTH2_PROXY_REDIRECT_URL": {
                      "isOptional": false,
                      "description": "The callback URL for OAuth (e.g., \"https://your-proxy-domain/oauth2/callback\")",
                      "defaultValue": "{{OAUTH2_PROXY_REDIRECT_URL}}"
                    },
                    "OAUTH2_PROXY_CLIENT_SECRET": {
                      "isOptional": false,
                      "description": "Your Provider OAuth Client Secret",
                      "defaultValue": "{{OAUTH2_PROXY_CLIENT_SECRET}}"
                    },
                    "OAUTH2_PROXY_COOKIE_SECRET": {
                      "isOptional": false,
                      "description": "A secret string to encrypt cookies (generate a random string)",
                      "defaultValue": "{{OAUTH2_PROXY_COOKIE_SECRET}}"
                    },
                    "OAUTH2_PROXY_EMAIL_DOMAINS": {
                      "isOptional": false,
                      "description": "The Email Domain to be whitelisted",
                      "defaultValue": "{{OAUTH2_PROXY_EMAIL_DOMAINS}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-19T04:14:37.968Z",
  "generator_version": "0.1.0"
}
