{
  "manifest_version": "1.0.0",
  "template": {
    "id": "708de91f-c5c8-4ec4-92f8-6ae3d1114153",
    "slug": "deploy-caddy-static-file-server",
    "name": "Deploy Caddy Static File Server",
    "description": "Serve and browse files over HTTPS with Caddy file_server",
    "url": "https://railway.com/deploy/deploy-caddy-static-file-server",
    "upstream": {
      "image": "ghcr.io/onepush-dev/caddy:2.11.7"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "caddy",
      "source": {
        "image": "ghcr.io/onepush-dev/caddy:2.11.7"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "caddy",
      "description": "HTTP listen port. Railway injects this automatically.",
      "secret": false,
      "strategy": "default",
      "default": "HTTP listen port. Railway injects this automatically."
    },
    {
      "key": "UPSTREAM",
      "service": "caddy",
      "description": "Optional reverse-proxy target as host:port. When empty, serves static files from /srv.",
      "secret": false,
      "strategy": "default",
      "default": "Optional reverse-proxy target as host:port. When empty, Caddy serves static files from /srv."
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "deploy-caddy-static-file-server"
      }
    },
    "cli": "railway deploy --template deploy-caddy-static-file-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "708de91f-c5c8-4ec4-92f8-6ae3d1114153",
            "serializedConfig": {
              "services": {
                "babf5d86-19cd-4ae5-bd56-fb4f9e3f84c8": {
                  "icon": "https://github.com/caddyserver.png",
                  "name": "caddy",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/onepush-dev/caddy:2.11.7"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listen port. Railway injects this automatically.",
                      "defaultValue": "HTTP listen port. Railway injects this automatically."
                    },
                    "UPSTREAM": {
                      "isOptional": true,
                      "description": "Optional reverse-proxy target as host:port. When empty, serves static files from /srv.",
                      "defaultValue": "Optional reverse-proxy target as host:port. When empty, Caddy serves static files from /srv."
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "caddy",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-10-31T04:14:55.520Z",
  "generator_version": "0.1.0"
}
