{
  "manifest_version": "1.0.0",
  "template": {
    "id": "963ccf40-66e8-44ef-8fd2-ce256cf5d8a7",
    "slug": "caddy-zero-trust",
    "name": "Caddy Auth Proxy",
    "description": "A lightweight Caddy-based authentication proxy that protects services.",
    "url": "https://railway.com/deploy/caddy-zero-trust",
    "upstream": {
      "repo_url": "https://github.com/rubenszinho/caddy-zero-trust"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "caddy-auth-proxy",
      "source": {
        "repo": "https://github.com/rubenszinho/caddy-zero-trust"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "AUTH_PASS",
      "service": "caddy-auth-proxy",
      "description": "Provide a value for AUTH_PASS.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "AUTH_USER",
      "service": "caddy-auth-proxy",
      "description": "Provide a value for AUTH_USER.",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DOMAIN_NAME",
      "service": "caddy-auth-proxy",
      "description": "Provide a value for DOMAIN_NAME.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "UPSTREAM_URL",
      "service": "caddy-auth-proxy",
      "description": "The `UPSTREAM_URL` points to the private internal address of the service you want to protect.  e.g. UPSTREAM_URL=\"http://${{service-name.RAILWAY_PRIVATE_DOMAIN}}:${{service-name.PORT}}\"",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "caddy-zero-trust"
      }
    },
    "cli": "railway deploy --template caddy-zero-trust",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "963ccf40-66e8-44ef-8fd2-ce256cf5d8a7",
            "serializedConfig": {
              "services": {
                "f3999503-f639-4434-8170-ab6511951537": {
                  "icon": "https://media.rubrion.ai/railway/icons/caddy.svg",
                  "name": "caddy-auth-proxy",
                  "source": {
                    "repo": "rubenszinho/caddy-zero-trust",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "AUTH_PASS": {
                      "defaultValue": "{{AUTH_PASS}}"
                    },
                    "AUTH_USER": {
                      "defaultValue": "{{AUTH_USER}}"
                    },
                    "DOMAIN_NAME": {
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "QUERY_PARAMS": {
                      "isOptional": true,
                      "description": "Optional query string to append to requests",
                      "defaultValue": ""
                    },
                    "UPSTREAM_URL": {
                      "description": "The `UPSTREAM_URL` points to the private internal address of the service you want to protect.  e.g. UPSTREAM_URL=\"http://${{service-name.RAILWAY_PRIVATE_DOMAIN}}:${{service-name.PORT}}\"",
                      "defaultValue": "{{UPSTREAM_URL}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-21T10:14:42.516Z",
  "generator_version": "0.1.0"
}
