{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6e1d5d01-a944-4667-9192-e0217f0da733",
    "slug": "linkstack",
    "name": "LinkStack",
    "description": "Self-hosted link-in-bio pages with generated admin and durable storage",
    "url": "https://railway.com/deploy/linkstack",
    "upstream": {
      "repo_url": "https://github.com/monotykamary/railway-template-linkstack"
    }
  },
  "services": [
    {
      "name": "linkstack",
      "source": {
        "repo": "https://github.com/monotykamary/railway-template-linkstack"
      },
      "needs_volume": true,
      "volume_mount_path": "/htdocs",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "linkstack",
      "description": "PHP timezone in IANA format.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PORT",
      "service": "linkstack",
      "description": "Port used by upstream Apache and Railway health checks.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "APP_ENV",
      "service": "linkstack",
      "description": "Laravel runtime environment. Keep this set to production.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "APP_KEY",
      "service": "linkstack",
      "description": "Generated 32-byte Laravel encryption key. Do not change it after first deploy.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "APP_DEBUG",
      "service": "linkstack",
      "description": "Controls Laravel debug output. Keep disabled on public deployments.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LOG_LEVEL",
      "service": "linkstack",
      "description": "Apache log level.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "FORCE_HTTPS",
      "service": "linkstack",
      "description": "Generates HTTPS links behind Railway's TLS-terminating reverse proxy.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SERVER_ADMIN",
      "service": "linkstack",
      "description": "Apache server administrator contact; follows the LinkStack admin email.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "HTTP_SERVER_NAME",
      "service": "linkstack",
      "description": "Apache HTTP server name from the generated Railway public domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PHP_MEMORY_LIMIT",
      "service": "linkstack",
      "description": "PHP per-request memory limit.",
      "secret": false,
      "strategy": "default",
      "default": "256M"
    },
    {
      "key": "HTTPS_SERVER_NAME",
      "service": "linkstack",
      "description": "Apache HTTPS virtual-host name from the generated Railway public domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "UPLOAD_MAX_FILESIZE",
      "service": "linkstack",
      "description": "Maximum PHP upload size for themes and images.",
      "secret": false,
      "strategy": "default",
      "default": "16M"
    },
    {
      "key": "LINKSTACK_ADMIN_NAME",
      "service": "linkstack",
      "description": "Display name for the generated first administrator.",
      "secret": false,
      "strategy": "default",
      "default": "Administrator"
    },
    {
      "key": "LINKSTACK_ADMIN_EMAIL",
      "service": "linkstack",
      "description": "Email used for the generated first administrator and initial sign-in.",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "LINKSTACK_ADMIN_HANDLE",
      "service": "linkstack",
      "description": "Public handle for the generated administrator profile.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "LINKSTACK_ADMIN_PASSWORD",
      "service": "linkstack",
      "description": "Generated password used only when creating the first administrator.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "linkstack"
      }
    },
    "cli": "railway deploy --template linkstack",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6e1d5d01-a944-4667-9192-e0217f0da733",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "0727b6d9-607e-46cc-8696-ad9daf2cba28": {
                  "icon": "https://raw.githubusercontent.com/monotykamary/railway-template-linkstack/071d89a3af878b26529755e8108dc61927ea3eff/assets/linkstack-icon.png",
                  "name": "linkstack",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 300,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/monotykamary/railway-template-linkstack",
                    "rootDirectory": null
                  },
                  "variables": {
                    "TZ": {
                      "isOptional": false,
                      "description": "PHP timezone in IANA format.",
                      "defaultValue": "UTC"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "Port used by upstream Apache and Railway health checks.",
                      "defaultValue": "80"
                    },
                    "APP_ENV": {
                      "isOptional": false,
                      "description": "Laravel runtime environment. Keep this set to production.",
                      "defaultValue": "production"
                    },
                    "APP_KEY": {
                      "isOptional": false,
                      "description": "Generated 32-byte Laravel encryption key. Do not change it after first deploy.",
                      "defaultValue": "{{APP_KEY}}"
                    },
                    "APP_DEBUG": {
                      "isOptional": false,
                      "description": "Controls Laravel debug output. Keep disabled on public deployments.",
                      "defaultValue": "false"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Apache log level.",
                      "defaultValue": "info"
                    },
                    "FORCE_HTTPS": {
                      "isOptional": false,
                      "description": "Generates HTTPS links behind Railway's TLS-terminating reverse proxy.",
                      "defaultValue": "true"
                    },
                    "SERVER_ADMIN": {
                      "isOptional": false,
                      "description": "Apache server administrator contact; follows the LinkStack admin email.",
                      "defaultValue": "${{LINKSTACK_ADMIN_EMAIL}}"
                    },
                    "HTTP_SERVER_NAME": {
                      "isOptional": false,
                      "description": "Apache HTTP server name from the generated Railway public domain.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PHP_MEMORY_LIMIT": {
                      "isOptional": false,
                      "description": "PHP per-request memory limit.",
                      "defaultValue": "256M"
                    },
                    "HTTPS_SERVER_NAME": {
                      "isOptional": false,
                      "description": "Apache HTTPS virtual-host name from the generated Railway public domain.",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "UPLOAD_MAX_FILESIZE": {
                      "isOptional": false,
                      "description": "Maximum PHP upload size for themes and images.",
                      "defaultValue": "16M"
                    },
                    "LINKSTACK_ADMIN_NAME": {
                      "isOptional": false,
                      "description": "Display name for the generated first administrator.",
                      "defaultValue": "Administrator"
                    },
                    "LINKSTACK_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Email used for the generated first administrator and initial sign-in.",
                      "defaultValue": "admin@example.com"
                    },
                    "LINKSTACK_ADMIN_HANDLE": {
                      "isOptional": false,
                      "description": "Public handle for the generated administrator profile.",
                      "defaultValue": "admin"
                    },
                    "LINKSTACK_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated password used only when creating the first administrator.",
                      "defaultValue": "{{LINKSTACK_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "0727b6d9-607e-46cc-8696-ad9daf2cba28": {
                      "mountPath": "/htdocs",
                      "backupSchedules": [
                        "DAILY"
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "linkstack",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T16:14:49.616Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T17:03:36.457Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_384a9b0a2f5d48d0af75",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 66,
    "typical_build_seconds": 30,
    "typical_start_seconds": 10,
    "slowest_service": "linkstack"
  }
}
