{
  "manifest_version": "1.0.0",
  "template": {
    "id": "75a0768e-e03b-4d86-bc83-a783d40243f7",
    "slug": "stirling-pdf-railw-1",
    "name": "Stirling-PDF — Self-Hosted PDF Toolkit",
    "description": "Self-hosted Stirling-PDF with auth, persistence, and API",
    "url": "https://railway.com/deploy/stirling-pdf-railw-1",
    "upstream": {
      "repo_url": "https://github.com/Timboslice212/stirling-pdf-railway"
    }
  },
  "services": [
    {
      "name": "stirling-pdf",
      "source": {
        "repo": "https://github.com/Timboslice212/stirling-pdf-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/configs",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "stirling-pdf",
      "description": "Application port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SERVER_PORT",
      "service": "stirling-pdf",
      "description": "Server port",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SECURITY_ENABLELOGIN",
      "service": "stirling-pdf",
      "description": "Enable login security",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SYSTEM_DEFAULTLOCALE",
      "service": "stirling-pdf",
      "description": "Default system locale",
      "secret": false,
      "strategy": "default",
      "default": "en-US"
    },
    {
      "key": "SYSTEM_GOOGLEVISIBILITY",
      "service": "stirling-pdf",
      "description": "Google visibility setting",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "SECURITY_INITIALLOGIN_PASSWORD",
      "service": "stirling-pdf",
      "description": "Initial login password (auto-generated)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SECURITY_INITIALLOGIN_USERNAME",
      "service": "stirling-pdf",
      "description": "Initial login username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "stirling-pdf-railw-1"
      }
    },
    "cli": "railway deploy --template stirling-pdf-railw-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "75a0768e-e03b-4d86-bc83-a783d40243f7",
            "serializedConfig": {
              "services": {
                "58494eb4-f467-41e9-8610-5ebeb3e39574": {
                  "name": "stirling-pdf",
                  "build": {
                    "dockerfilePath": "Dockerfile"
                  },
                  "deploy": {
                    "healthcheckPath": "/api/v1/info/status",
                    "healthcheckTimeout": 600
                  },
                  "source": {
                    "repo": "Timboslice212/stirling-pdf-railway",
                    "branch": "main"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Application port",
                      "defaultValue": "8080"
                    },
                    "SERVER_PORT": {
                      "isOptional": true,
                      "description": "Server port",
                      "defaultValue": "8080"
                    },
                    "SECURITY_ENABLELOGIN": {
                      "isOptional": true,
                      "description": "Enable login security",
                      "defaultValue": "true"
                    },
                    "SYSTEM_DEFAULTLOCALE": {
                      "isOptional": true,
                      "description": "Default system locale",
                      "defaultValue": "en-US"
                    },
                    "SYSTEM_GOOGLEVISIBILITY": {
                      "isOptional": true,
                      "description": "Google visibility setting",
                      "defaultValue": "false"
                    },
                    "SECURITY_INITIALLOGIN_PASSWORD": {
                      "isOptional": true,
                      "description": "Initial login password (auto-generated)",
                      "defaultValue": "{{SECURITY_INITIALLOGIN_PASSWORD}}"
                    },
                    "SECURITY_INITIALLOGIN_USERNAME": {
                      "isOptional": true,
                      "description": "Initial login username",
                      "defaultValue": "admin"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "configs": {
                      "sizeMB": 5000,
                      "mountPath": "/configs"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "stirling-pdf",
      "method": "GET",
      "path": "/api/v1/info/status",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-08T21:59:40.747Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T22:03:59.610Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_82cd31697af3487caf24",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 190,
    "typical_build_seconds": 102,
    "typical_start_seconds": 41,
    "slowest_service": "stirling-pdf"
  }
}
