{
  "manifest_version": "1.0.0",
  "template": {
    "id": "efb2702a-6493-4619-ba03-d13efc376cd2",
    "slug": "one-time-secret",
    "name": "One-Time Secret",
    "description": "Secure links that only work once",
    "url": "https://railway.com/deploy/one-time-secret",
    "upstream": {
      "image": "onetimesecret/onetimesecret"
    }
  },
  "services": [
    {
      "name": "Redis",
      "source": {
        "image": "railwayapp/redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/bitnami",
      "tcp_ports": [
        6379
      ],
      "http": false
    },
    {
      "name": "onetimesecret",
      "source": {
        "image": "onetimesecret/onetimesecret"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port to connect to Redis.",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default user to connect to Redis.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "URL to connect to Redis over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Password to connect to Redis.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Password to connect to Redis.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Redis",
      "description": "Start Redis process as root to allow for writing to the volume",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDIS_PUBLIC_URL",
      "service": "Redis",
      "description": "Public URL to connect to Redis, needed for the Data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_RDB_POLICY",
      "service": "Redis",
      "description": "Set a RDB snapshot policy.",
      "secret": false,
      "strategy": "default",
      "default": "3600#1 300#100 60#10000"
    },
    {
      "key": "REDIS_AOF_ENABLED",
      "service": "Redis",
      "description": "Disable writing to AOF file.",
      "secret": false,
      "strategy": "default",
      "default": "no"
    },
    {
      "key": "RAILWAY_RUN_AS_ROOT",
      "service": "Redis",
      "description": "Start Redis process as root to allow for writing to the volume",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SSL",
      "service": "onetimesecret",
      "description": "Provide a value for SSL.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "HOST",
      "service": "onetimesecret",
      "description": "Provide a value for HOST.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "PORT",
      "service": "onetimesecret",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "SECRET",
      "service": "onetimesecret",
      "description": "Provide a value for SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "COLONEL",
      "service": "onetimesecret",
      "description": "Provide a value for COLONEL.",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "RACK_ENV",
      "service": "onetimesecret",
      "description": "Provide a value for RACK_ENV.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URL",
      "service": "onetimesecret",
      "description": "Provide a value for REDIS_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AUTH_SIGNIN",
      "service": "onetimesecret",
      "description": "Provide a value for AUTH_SIGNIN.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AUTH_SIGNUP",
      "service": "onetimesecret",
      "description": "Provide a value for AUTH_SIGNUP.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AUTH_ENABLED",
      "service": "onetimesecret",
      "description": "Provide a value for AUTH_ENABLED.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "AUTH_AUTOVERIFY",
      "service": "onetimesecret",
      "description": "Provide a value for AUTH_AUTOVERIFY.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "one-time-secret"
      }
    },
    "cli": "railway deploy --template one-time-secret",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "efb2702a-6493-4619-ba03-d13efc376cd2",
            "serializedConfig": {
              "services": {
                "9628d9cf-9eaa-4ac9-beec-c4952e7c4307": {
                  "icon": "https://devicons.railway.app/i/redis.svg",
                  "name": "Redis",
                  "build": {},
                  "deploy": {
                    "requiredMountPath": "/bitnami"
                  },
                  "source": {
                    "image": "railwayapp/redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{ RAILWAY_PRIVATE_DOMAIN }}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Redis.",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default user to connect to Redis.",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Redis over the private network.",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_PRIVATE_DOMAIN }}:6379"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to Redis.",
                      "defaultValue": "${{ REDIS_PASSWORD }}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to Redis.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "Start Redis process as root to allow for writing to the volume",
                      "defaultValue": "0"
                    },
                    "REDIS_PUBLIC_URL": {
                      "description": "Public URL to connect to Redis, needed for the Data panel.",
                      "defaultValue": "redis://default:${{ REDIS_PASSWORD }}@${{ RAILWAY_TCP_PROXY_DOMAIN }}:${{ RAILWAY_TCP_PROXY_PORT }}"
                    },
                    "REDIS_RDB_POLICY": {
                      "description": "Set a RDB snapshot policy.",
                      "defaultValue": "3600#1 300#100 60#10000"
                    },
                    "REDIS_AOF_ENABLED": {
                      "description": "Disable writing to AOF file.",
                      "defaultValue": "no"
                    },
                    "RAILWAY_RUN_AS_ROOT": {
                      "isOptional": false,
                      "description": "Start Redis process as root to allow for writing to the volume",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "tcpProxies": {
                      "6379": {}
                    },
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "9628d9cf-9eaa-4ac9-beec-c4952e7c4307": {
                      "mountPath": "/bitnami"
                    }
                  }
                },
                "a88b9381-0c1b-4dc5-a74c-2412064d358a": {
                  "icon": null,
                  "name": "onetimesecret",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "onetimesecret/onetimesecret"
                  },
                  "variables": {
                    "SSL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "true"
                    },
                    "HOST": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "PORT": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "8080"
                    },
                    "SECRET": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{SECRET}}"
                    },
                    "COLONEL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "admin@example.com"
                    },
                    "RACK_ENV": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "production"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "AUTH_SIGNIN": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "false"
                    },
                    "AUTH_SIGNUP": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "false"
                    },
                    "AUTH_ENABLED": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "false"
                    },
                    "AUTH_AUTOVERIFY": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "false"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-14T16:14:52.837Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-14T03:55:50.722Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_fc44d28e978141eb83b0",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 84,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "onetimesecret"
  }
}
