{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4b8a8577-5172-4232-b37c-bfe6b833fd1d",
    "slug": "stirling-pdf-railway",
    "name": "Stirling PDF",
    "description": "Adobe Acrobat alternative. Merge, split, compress, OCR, redact & sign",
    "url": "https://railway.com/deploy/stirling-pdf-railway",
    "upstream": {
      "image": "stirlingtools/stirling-pdf:latest"
    }
  },
  "services": [
    {
      "name": "unoserver",
      "source": {
        "image": "ghcr.io/stirling-tools/stirling-unoserver:latest"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "stirling-pdf",
      "source": {
        "image": "stirlingtools/stirling-pdf:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/configs",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "UNOSERVER_PORT",
      "service": "unoserver",
      "description": "Conversion listen port",
      "secret": false,
      "strategy": "default",
      "default": "2003"
    },
    {
      "key": "UNOSERVER_UNO_PORT",
      "service": "unoserver",
      "description": "Internal UNO bridge port",
      "secret": false,
      "strategy": "default",
      "default": "2002"
    },
    {
      "key": "UNOSERVER_INTERFACE",
      "service": "unoserver",
      "description": "Bind all interfaces",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "UNOSERVER_CONVERSION_TIMEOUT",
      "service": "unoserver",
      "description": "Max seconds per conversion",
      "secret": false,
      "strategy": "default",
      "default": "1800"
    },
    {
      "key": "UNOSERVER_RECYCLE_INTERVAL_SECONDS",
      "service": "unoserver",
      "description": "Restart LibreOffice hourly",
      "secret": false,
      "strategy": "default",
      "default": "3600"
    },
    {
      "key": "PORT",
      "service": "stirling-pdf",
      "description": "Port Railway routes and probes",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "METRICS_ENABLED",
      "service": "stirling-pdf",
      "description": "Powers the health-check endpoint",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SYSTEM_BACKENDURL",
      "service": "stirling-pdf",
      "description": "Public URL for OAuth/SAML callbacks",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SYSTEM_FRONTENDURL",
      "service": "stirling-pdf",
      "description": "Public URL for invites and QR codes",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SECURITY_ENABLELOGIN",
      "service": "stirling-pdf",
      "description": "Require sign-in for UI and API",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SYSTEM_DEFAULTLOCALE",
      "service": "stirling-pdf",
      "description": "Default interface language",
      "secret": false,
      "strategy": "default",
      "default": "en-US"
    },
    {
      "key": "SYSTEM_ENABLEANALYTICS",
      "service": "stirling-pdf",
      "description": "Keep upstream telemetry off",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "SYSTEM_GOOGLEVISIBILITY",
      "service": "stirling-pdf",
      "description": "Serve disallow-all robots.txt",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PROCESSEXECUTOR_AUTOUNOSERVER",
      "service": "stirling-pdf",
      "description": "Same switch, Java binding name",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "SECURITY_INITIALLOGIN_PASSWORD",
      "service": "stirling-pdf",
      "description": "First admin password, generated once",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SECURITY_INITIALLOGIN_USERNAME",
      "service": "stirling-pdf",
      "description": "First admin username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "PROCESS_EXECUTOR_AUTO_UNO_SERVER",
      "service": "stirling-pdf",
      "description": "Startup script: skip local UNO pool",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "PROCESSEXECUTOR_UNOSERVERENDPOINTS_0_HOST",
      "service": "stirling-pdf",
      "description": "Conversion worker hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PROCESSEXECUTOR_UNOSERVERENDPOINTS_0_PORT",
      "service": "stirling-pdf",
      "description": "Conversion worker port",
      "secret": false,
      "strategy": "default",
      "default": "2003"
    },
    {
      "key": "PROCESSEXECUTOR_UNOSERVERENDPOINTS_0_PROTOCOL",
      "service": "stirling-pdf",
      "description": "Worker transport",
      "secret": false,
      "strategy": "default",
      "default": "http"
    },
    {
      "key": "PROCESSEXECUTOR_UNOSERVERENDPOINTS_0_HOSTLOCATION",
      "service": "stirling-pdf",
      "description": "Send file contents, not paths",
      "secret": false,
      "strategy": "default",
      "default": "remote"
    },
    {
      "key": "PROCESSEXECUTOR_SESSIONLIMIT_LIBREOFFICESESSIONLIMIT",
      "service": "stirling-pdf",
      "description": "Match the endpoint count",
      "secret": false,
      "strategy": "default",
      "default": "1"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "stirling-pdf-railway"
      }
    },
    "cli": "railway deploy --template stirling-pdf-railway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4b8a8577-5172-4232-b37c-bfe6b833fd1d",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "1e18474a-0902-4079-ac8d-9773f20c604d": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/libreoffice.svg",
                  "name": "unoserver",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/stirling-tools/stirling-unoserver:latest"
                  },
                  "variables": {
                    "UNOSERVER_PORT": {
                      "isOptional": false,
                      "description": "Conversion listen port",
                      "defaultValue": "2003"
                    },
                    "UNOSERVER_UNO_PORT": {
                      "isOptional": false,
                      "description": "Internal UNO bridge port",
                      "defaultValue": "2002"
                    },
                    "UNOSERVER_INTERFACE": {
                      "isOptional": false,
                      "description": "Bind all interfaces",
                      "defaultValue": "0.0.0.0"
                    },
                    "UNOSERVER_CONVERSION_TIMEOUT": {
                      "isOptional": false,
                      "description": "Max seconds per conversion",
                      "defaultValue": "1800"
                    },
                    "UNOSERVER_RECYCLE_INTERVAL_SECONDS": {
                      "isOptional": false,
                      "description": "Restart LibreOffice hourly",
                      "defaultValue": "3600"
                    }
                  }
                },
                "21bbf467-c95d-4d7e-a070-05c3b7b6fbbb": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/stirling-pdf.svg",
                  "name": "stirling-pdf",
                  "deploy": {
                    "startCommand": "/bin/bash -c 'set -e; mkdir -p /configs/customFiles /configs/pipeline; for d in customFiles pipeline; do [ -L \"/$d\" ] || { rm -rf \"/$d\"; ln -s \"/configs/$d\" \"/$d\"; }; done; echo \"boot: $(ls -ld /customFiles /pipeline | tr \"\\n\" \" \")\"; exec tini -- /scripts/init.sh'",
                    "healthcheckPath": "/api/v1/info/status",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "stirlingtools/stirling-pdf:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port Railway routes and probes",
                      "defaultValue": "8080"
                    },
                    "METRICS_ENABLED": {
                      "isOptional": false,
                      "description": "Powers the health-check endpoint",
                      "defaultValue": "true"
                    },
                    "SYSTEM_BACKENDURL": {
                      "isOptional": false,
                      "description": "Public URL for OAuth/SAML callbacks",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SYSTEM_FRONTENDURL": {
                      "isOptional": false,
                      "description": "Public URL for invites and QR codes",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SECURITY_ENABLELOGIN": {
                      "isOptional": false,
                      "description": "Require sign-in for UI and API",
                      "defaultValue": "true"
                    },
                    "SYSTEM_DEFAULTLOCALE": {
                      "isOptional": false,
                      "description": "Default interface language",
                      "defaultValue": "en-US"
                    },
                    "SYSTEM_ENABLEANALYTICS": {
                      "isOptional": false,
                      "description": "Keep upstream telemetry off",
                      "defaultValue": "false"
                    },
                    "SYSTEM_GOOGLEVISIBILITY": {
                      "isOptional": false,
                      "description": "Serve disallow-all robots.txt",
                      "defaultValue": "false"
                    },
                    "PROCESSEXECUTOR_AUTOUNOSERVER": {
                      "isOptional": false,
                      "description": "Same switch, Java binding name",
                      "defaultValue": "false"
                    },
                    "SECURITY_INITIALLOGIN_PASSWORD": {
                      "isOptional": false,
                      "description": "First admin password, generated once",
                      "defaultValue": "{{SECURITY_INITIALLOGIN_PASSWORD}}"
                    },
                    "SECURITY_INITIALLOGIN_USERNAME": {
                      "isOptional": false,
                      "description": "First admin username",
                      "defaultValue": "admin"
                    },
                    "PROCESS_EXECUTOR_AUTO_UNO_SERVER": {
                      "isOptional": false,
                      "description": "Startup script: skip local UNO pool",
                      "defaultValue": "false"
                    },
                    "PROCESSEXECUTOR_UNOSERVERENDPOINTS_0_HOST": {
                      "isOptional": false,
                      "description": "Conversion worker hostname",
                      "defaultValue": "${{unoserver.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PROCESSEXECUTOR_UNOSERVERENDPOINTS_0_PORT": {
                      "isOptional": false,
                      "description": "Conversion worker port",
                      "defaultValue": "2003"
                    },
                    "PROCESSEXECUTOR_UNOSERVERENDPOINTS_0_PROTOCOL": {
                      "isOptional": false,
                      "description": "Worker transport",
                      "defaultValue": "http"
                    },
                    "PROCESSEXECUTOR_UNOSERVERENDPOINTS_0_HOSTLOCATION": {
                      "isOptional": false,
                      "description": "Send file contents, not paths",
                      "defaultValue": "remote"
                    },
                    "PROCESSEXECUTOR_SESSIONLIMIT_LIBREOFFICESESSIONLIMIT": {
                      "isOptional": false,
                      "description": "Match the endpoint count",
                      "defaultValue": "1"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "21bbf467-c95d-4d7e-a070-05c3b7b6fbbb": {
                      "mountPath": "/configs"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "stirling-pdf",
      "method": "GET",
      "path": "/api/v1/info/status",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T10:14:42.516Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T17:12:46.123Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_b2c7daf542d54e52854b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 102,
    "typical_build_seconds": 0,
    "typical_start_seconds": 30,
    "slowest_service": "stirling-pdf"
  }
}
