{
  "manifest_version": "1.0.0",
  "template": {
    "id": "105723eb-a6b3-4ce5-9603-ce0a1724a1a7",
    "slug": "bYH8Xt",
    "name": "railway-docker-nginx-basic-auth",
    "description": "Add basic auth to your web app.",
    "url": "https://railway.com/deploy/bYH8Xt",
    "upstream": {
      "repo_url": "https://github.com/toyjack/railway-nginx-basic-auth"
    }
  },
  "services": [
    {
      "name": "nginx-basic-auth",
      "source": {
        "repo": "https://github.com/toyjack/railway-nginx-basic-auth"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "nginx-basic-auth",
      "description": "for nginx expose",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "PASSWORD",
      "service": "nginx-basic-auth",
      "description": "Provide a value for PASSWORD.",
      "secret": true,
      "strategy": "default",
      "default": "password"
    },
    {
      "key": "USERNAME",
      "service": "nginx-basic-auth",
      "description": "Provide a value for USERNAME.",
      "secret": false,
      "strategy": "default",
      "default": "user"
    },
    {
      "key": "PROXY_PASS",
      "service": "nginx-basic-auth",
      "description": "for railway web app needs basic auth",
      "secret": false,
      "strategy": "default",
      "default": "http://xxx.railway.internal:3000"
    },
    {
      "key": "ENABLE_ALPINE_PRIVATE_NETWORKING",
      "service": "nginx-basic-auth",
      "description": "for alpine image working on private network",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "bYH8Xt"
      }
    },
    "cli": "railway deploy --template bYH8Xt",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "105723eb-a6b3-4ce5-9603-ce0a1724a1a7",
            "serializedConfig": {
              "services": {
                "6fb1e068-99bb-4b71-83de-efebc5f32da1": {
                  "name": "nginx-basic-auth",
                  "build": {},
                  "deploy": {},
                  "source": {
                    "repo": "https://github.com/toyjack/railway-nginx-basic-auth"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "for nginx expose",
                      "defaultValue": "80"
                    },
                    "PASSWORD": {
                      "isOptional": true,
                      "defaultValue": "password"
                    },
                    "USERNAME": {
                      "isOptional": true,
                      "defaultValue": "user"
                    },
                    "PROXY_PASS": {
                      "isOptional": true,
                      "description": "for railway web app needs basic auth",
                      "defaultValue": "http://xxx.railway.internal:3000"
                    },
                    "ENABLE_ALPINE_PRIVATE_NETWORKING": {
                      "isOptional": false,
                      "description": "for alpine image working on private network",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T22:14:37.505Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T08:52:20.634Z",
  "success_rate_30d": 0.2,
  "validation": {
    "last_run_id": "run_e33afbba3ac442c19a9c",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "CRASHED"
      }
    ],
    "typical_ready_seconds": 96,
    "typical_build_seconds": 23,
    "typical_start_seconds": 0,
    "slowest_service": "nginx-basic-auth"
  }
}
