{
  "manifest_version": "1.0.0",
  "template": {
    "id": "42a3ce0f-bb2b-4ed2-b3f9-09d09e61793b",
    "slug": "stirling-pdf",
    "name": "Stirling-PDF",
    "description": "Deploy and Host Stirling-PDF with Railway",
    "url": "https://railway.com/deploy/stirling-pdf",
    "upstream": {
      "repo_url": "https://github.com/nick0lay/railway-templates"
    }
  },
  "services": [
    {
      "name": "StirlingPDF",
      "source": {
        "repo": "https://github.com/nick0lay/railway-templates"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "UI_APPNAME",
      "service": "StirlingPDF",
      "description": "Provide a value for UI_APPNAME.",
      "secret": false,
      "strategy": "default",
      "default": "Stirling-PDF"
    },
    {
      "key": "METRICS_ENABLED",
      "service": "StirlingPDF",
      "description": "UI Branding (Optional)",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "UI_APPNAMENAVBAR",
      "service": "StirlingPDF",
      "description": "Optional: API Key for external API access",
      "secret": false,
      "strategy": "default",
      "default": "Stirling-PDF"
    },
    {
      "key": "SYSTEM_MAXFILESIZE",
      "service": "StirlingPDF",
      "description": "Provide a value for SYSTEM_MAXFILESIZE.",
      "secret": false,
      "strategy": "default",
      "default": "100"
    },
    {
      "key": "SECURITY_ENABLELOGIN",
      "service": "StirlingPDF",
      "description": "Provide a value for SECURITY_ENABLELOGIN.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SYSTEM_DEFAULTLOCALE",
      "service": "StirlingPDF",
      "description": "Provide a value for SYSTEM_DEFAULTLOCALE.",
      "secret": false,
      "strategy": "default",
      "default": "en-US"
    },
    {
      "key": "DOCKER_ENABLE_SECURITY",
      "service": "StirlingPDF",
      "description": "Provide a value for DOCKER_ENABLE_SECURITY.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SECURITY_CUSTOMGLOBALAPIKEY",
      "service": "StirlingPDF",
      "description": "Provide a value for SECURITY_CUSTOMGLOBALAPIKEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SECURITY_INITIALLOGIN_PASSWORD",
      "service": "StirlingPDF",
      "description": "System Settings",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SECURITY_INITIALLOGIN_USERNAME",
      "service": "StirlingPDF",
      "description": "Provide a value for SECURITY_INITIALLOGIN_USERNAME.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "stirling-pdf"
      }
    },
    "cli": "railway deploy --template stirling-pdf",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "42a3ce0f-bb2b-4ed2-b3f9-09d09e61793b",
            "serializedConfig": {
              "services": {
                "e94457e5-424a-46e6-92be-8e7cccded9fc": {
                  "name": "StirlingPDF",
                  "source": {
                    "repo": "nick0lay/railway-templates",
                    "branch": null,
                    "rootDirectory": "/solutions/stirling-pdf/app"
                  },
                  "variables": {
                    "UI_APPNAME": {
                      "isOptional": true,
                      "defaultValue": "Stirling-PDF"
                    },
                    "METRICS_ENABLED": {
                      "isOptional": true,
                      "description": "UI Branding (Optional)",
                      "defaultValue": "true"
                    },
                    "UI_APPNAMENAVBAR": {
                      "isOptional": true,
                      "description": "Optional: API Key for external API access",
                      "defaultValue": "Stirling-PDF"
                    },
                    "SYSTEM_MAXFILESIZE": {
                      "isOptional": true,
                      "defaultValue": "100"
                    },
                    "SECURITY_ENABLELOGIN": {
                      "isOptional": true,
                      "defaultValue": "true"
                    },
                    "SYSTEM_DEFAULTLOCALE": {
                      "isOptional": true,
                      "defaultValue": "en-US"
                    },
                    "DOCKER_ENABLE_SECURITY": {
                      "isOptional": true,
                      "defaultValue": "true"
                    },
                    "SECURITY_CUSTOMGLOBALAPIKEY": {
                      "isOptional": true,
                      "defaultValue": "{{SECURITY_CUSTOMGLOBALAPIKEY}}"
                    },
                    "SECURITY_INITIALLOGIN_PASSWORD": {
                      "isOptional": true,
                      "description": "System Settings",
                      "defaultValue": "{{SECURITY_INITIALLOGIN_PASSWORD}}"
                    },
                    "SECURITY_INITIALLOGIN_USERNAME": {
                      "isOptional": true,
                      "defaultValue": "admin"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "e94457e5-424a-46e6-92be-8e7cccded9fc": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-16T05:20:41.143Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c3788dd817d04969bc04",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 101,
    "typical_build_seconds": 61,
    "typical_start_seconds": 15,
    "slowest_service": "StirlingPDF"
  }
}
