{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ee7b1ee5-a39a-4f66-9f9a-4a88aba177cd",
    "slug": "bentopdf-auth",
    "name": "BentoPDF + Auth",
    "description": "Deploy and Host BentoPDF + Auth with Railway",
    "url": "https://railway.com/deploy/bentopdf-auth",
    "upstream": {
      "repo_url": "https://github.com/iliab1/caddy-password-auth"
    }
  },
  "services": [
    {
      "name": "bentopdf",
      "source": {
        "image": "bentopdf/bentopdf:latest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "caddy-password-auth",
      "source": {
        "repo": "https://github.com/iliab1/caddy-password-auth"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "ORIGIN",
      "service": "caddy-password-auth",
      "description": "Provide a value for ORIGIN.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PASSWORD",
      "service": "caddy-password-auth",
      "description": "Provide a value for PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "USERNAME",
      "service": "caddy-password-auth",
      "description": "Provide a value for USERNAME.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "BASIC_AUTH",
      "service": "caddy-password-auth",
      "description": "Provide a value for BASIC_AUTH.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "bentopdf-auth"
      }
    },
    "cli": "railway deploy --template bentopdf-auth",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ee7b1ee5-a39a-4f66-9f9a-4a88aba177cd",
            "serializedConfig": {
              "services": {
                "774758a1-5eac-4403-892b-62750fa7064b": {
                  "name": "bentopdf",
                  "source": {
                    "image": "bentopdf/bentopdf:latest"
                  }
                },
                "d66f32e3-8c4f-414e-b5e8-bdf485993ec1": {
                  "name": "caddy-password-auth",
                  "source": {
                    "repo": "iliab1/caddy-password-auth",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "ORIGIN": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "http://${{bentopdf.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "PASSWORD": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "{{PASSWORD}}"
                    },
                    "USERNAME": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "admin"
                    },
                    "BASIC_AUTH": {
                      "defaultValue": "${{USERNAME}}:${{PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-18T13:44:38.706Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_30f011d344c144b08a17",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 72,
    "typical_build_seconds": 13,
    "typical_start_seconds": 10,
    "slowest_service": "caddy-password-auth"
  }
}
