{
  "manifest_version": "1.0.0",
  "template": {
    "id": "89c727c6-ccd4-4804-80a3-83c88c74d107",
    "slug": "turbo-cms-master",
    "name": "Turbo CMS Master",
    "description": "Central multi-tenant orchestrator and management hub for Turbo CMS.",
    "url": "https://railway.com/deploy/turbo-cms-master",
    "upstream": {
      "image": "ghcr.io/diegaosx/turbo-cms-master:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "turbo-cms-master",
      "source": {
        "image": "ghcr.io/diegaosx/turbo-cms-master:latest"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Internal persistent storage path on the PostgreSQL volume.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Internal private network hostname for PostgreSQL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Network port on which PostgreSQL listens (default: 5432).",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Root database administrator username.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Primary PostgreSQL database name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Generated password for PostgreSQL database access.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Initial default database name created on database startup.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Standard connection URI generated for applications connecting to PostgreSQL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Initial default root database username.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Number of days internal self-signed SSL certificates remain valid.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Secure generated password for PostgreSQL root authentication.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Connection draining time in seconds during new deployment rollouts.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Internal private network hostname for Redis.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Network port on which Redis listens (default: 6379).",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Default Redis user for client authentication.",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Internal connection URL for Redis distributed caching and rate limiting.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Secure access password generated for Redis authentication.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Secure generated password for Redis root authentication.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "turbo-cms-master",
      "description": "HTTP port on which the Master Panel server listens (default: 4000).",
      "secret": false,
      "strategy": "default",
      "default": "4000"
    },
    {
      "key": "NODE_ENV",
      "service": "turbo-cms-master",
      "description": "Application runtime environment (production).",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "REDIS_URL",
      "service": "turbo-cms-master",
      "description": "Redis connection URL automatically supplied by the Redis service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "turbo-cms-master",
      "description": "PostgreSQL connection URL automatically supplied by the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TURBO_ALPHA_URL",
      "service": "turbo-cms-master",
      "description": "Base URL of the central Turbo Alpha orchestrator for heartbeat pings and licensing.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "TURBO_MASTER_KEY",
      "service": "turbo-cms-master",
      "description": "Secret Master Key issued by Turbo Alpha for authenticated communication with client sites.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MASTER_ADMIN_USER",
      "service": "turbo-cms-master",
      "description": "Initial root administrator username for the Master Panel.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "MASTER_JWT_SECRET",
      "service": "turbo-cms-master",
      "description": "64-character cryptographic secret key used to sign administrative JWT sessions.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILWAY_API_TOKEN",
      "service": "turbo-cms-master",
      "description": "Customer Railway Personal API token used to deploy and orchestrate client websites.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TURBO_LICENSE_KEY",
      "service": "turbo-cms-master",
      "description": "Public License Key issued by Turbo Alpha for franchise license verification.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MASTER_ADMIN_PASSWORD",
      "service": "turbo-cms-master",
      "description": "Initial root administrator password for the Master Panel.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "turbo-cms-master"
      }
    },
    "cli": "railway deploy --template turbo-cms-master",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "89c727c6-ccd4-4804-80a3-83c88c74d107",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4fab4551-3ea6-4eeb-8003-a61283a6cc9d": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Internal persistent storage path on the PostgreSQL volume.",
                      "defaultValue": "/var/lib/postgresql/data"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Internal private network hostname for PostgreSQL.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Network port on which PostgreSQL listens (default: 5432).",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Root database administrator username.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Primary PostgreSQL database name.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Generated password for PostgreSQL database access.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Initial default database name created on database startup.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Standard connection URI generated for applications connecting to PostgreSQL.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Initial default root database username.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Number of days internal self-signed SSL certificates remain valid.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Secure generated password for PostgreSQL root authentication.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Connection draining time in seconds during new deployment rollouts.",
                      "defaultValue": "0"
                    }
                  },
                  "volumeMounts": {
                    "4fab4551-3ea6-4eeb-8003-a61283a6cc9d": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "94d4b522-6286-483d-92a0-2a1dcde093a5": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Internal private network hostname for Redis.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Network port on which Redis listens (default: 6379).",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Default Redis user for client authentication.",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Internal connection URL for Redis distributed caching and rate limiting.",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Secure access password generated for Redis authentication.",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Secure generated password for Redis root authentication.",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "94d4b522-6286-483d-92a0-2a1dcde093a5": {
                      "mountPath": "/data"
                    }
                  }
                },
                "c47a8f5d-aa47-43a8-9449-c5c13a443ac9": {
                  "icon": "https://ssl-cdn-cloudflare.adsensecustomsearchads.com.br/turbo_master_icon.png",
                  "name": "turbo-cms-master",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/diegaosx/turbo-cms-master:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port on which the Master Panel server listens (default: 4000).",
                      "defaultValue": "4000"
                    },
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "Application runtime environment (production).",
                      "defaultValue": "production"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis connection URL automatically supplied by the Redis service.",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection URL automatically supplied by the Postgres service.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "TURBO_ALPHA_URL": {
                      "isOptional": false,
                      "description": "Base URL of the central Turbo Alpha orchestrator for heartbeat pings and licensing.",
                      "defaultValue": "{{TURBO_ALPHA_URL}}"
                    },
                    "TURBO_MASTER_KEY": {
                      "isOptional": false,
                      "description": "Secret Master Key issued by Turbo Alpha for authenticated communication with client sites.",
                      "defaultValue": "{{TURBO_MASTER_KEY}}"
                    },
                    "MASTER_ADMIN_USER": {
                      "isOptional": false,
                      "description": "Initial root administrator username for the Master Panel.",
                      "defaultValue": "admin"
                    },
                    "MASTER_JWT_SECRET": {
                      "isOptional": false,
                      "description": "64-character cryptographic secret key used to sign administrative JWT sessions.",
                      "defaultValue": "{{MASTER_JWT_SECRET}}"
                    },
                    "RAILWAY_API_TOKEN": {
                      "isOptional": false,
                      "description": "Customer Railway Personal API token used to deploy and orchestrate client websites.",
                      "defaultValue": "{{RAILWAY_API_TOKEN}}"
                    },
                    "TURBO_LICENSE_KEY": {
                      "isOptional": false,
                      "description": "Public License Key issued by Turbo Alpha for franchise license verification.",
                      "defaultValue": "{{TURBO_LICENSE_KEY}}"
                    },
                    "MASTER_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Initial root administrator password for the Master Panel.",
                      "defaultValue": "{{MASTER_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:4000": {
                        "port": 4000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "turbo-cms-master",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-05T05:54:13.276Z",
  "generator_version": "0.1.0"
}
