{
  "manifest_version": "1.0.0",
  "template": {
    "id": "e54060a0-542f-4724-923f-9ee390c73dea",
    "slug": "slashdocs-google-oauth",
    "name": "slashdocs + Google OAuth",
    "description": "Deploy and host slashdocs from Razorpay + Google OAuth",
    "url": "https://railway.com/deploy/slashdocs-google-oauth",
    "upstream": {
      "image": "razorpay/slashdocs:0.3"
    }
  },
  "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": "slashdocs-render",
      "source": {
        "image": "razorpay/slashdocs:0.3"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "slashdocs",
      "source": {
        "image": "razorpay/slashdocs:0.3"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Directory where Postgres stores its data inside the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Private hostname of the Postgres service",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port Postgres listens on",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": " Database user (mirrors POSTGRES_USER)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Database name (mirrors POSTGRES_DB)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Database password (mirrors POSTGRES_PASSWORD)",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Name of the database created on first start",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection URL for Postgres, built from the variables below",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first start",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "Validity in days of the self-signed SSL certificate",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password, generated randomly at deploy",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Seconds to let connections finish before an old deployment stops",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "BLOB_BUCKET",
      "service": "slashdocs-render",
      "description": "Storage bucket for document versions, taken from slashdocs-docs.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BLOB_REGION",
      "service": "slashdocs-render",
      "description": "S3 signing region for the bucket. Keep \"auto\".",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "DATABASE_URL",
      "service": "slashdocs-render",
      "description": "Postgres connection, taken from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BLOB_ENDPOINT",
      "service": "slashdocs-render",
      "description": "S3 endpoint of the bucket",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SESSION_SECRET",
      "service": "slashdocs-render",
      "description": "session key as the slashdocs service",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SLASHDOCS_MIGRATE",
      "service": "slashdocs-render",
      "description": "Keep \"false\". Only the slashdocs service runs database migrations.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "BLOB_ACCESS_KEY_ID",
      "service": "slashdocs-render",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SLASHDOCS_APP_ORIGIN",
      "service": "slashdocs-render",
      "description": "Public URL of the app",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "BLOB_SECRET_ACCESS_KEY",
      "service": "slashdocs-render",
      "description": " Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GOOGLE_OAUTH_CLIENT_ID",
      "service": "slashdocs-render",
      "description": "Google OAuth client id",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SLASHDOCS_RENDER_ORIGIN",
      "service": "slashdocs-render",
      "description": " Public URL where documents render.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SLASHDOCS_KV_EVENTS_MODE",
      "service": "slashdocs-render",
      "description": "How live comments and presence sync between the two services.",
      "secret": false,
      "strategy": "default",
      "default": "notify"
    },
    {
      "key": "GOOGLE_OAUTH_CLIENT_SECRET",
      "service": "slashdocs-render",
      "description": "Google OAuth client secret",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BLOB_BUCKET",
      "service": "slashdocs",
      "description": "Storage bucket for document versions, taken from slashdocs-docs.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BLOB_REGION",
      "service": "slashdocs",
      "description": "S3 signing region for the bucket",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    },
    {
      "key": "DATABASE_URL",
      "service": "slashdocs",
      "description": "Postgres connection, taken from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "BLOB_ENDPOINT",
      "service": "slashdocs",
      "description": "S3 endpoint of the bucket",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SESSION_SECRET",
      "service": "slashdocs",
      "description": "Key for signing login sessions.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BLOB_ACCESS_KEY_ID",
      "service": "slashdocs",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SLASHDOCS_APP_ORIGIN",
      "service": "slashdocs",
      "description": "Public URL of the app.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "BLOB_SECRET_ACCESS_KEY",
      "service": "slashdocs",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GOOGLE_OAUTH_CLIENT_ID",
      "service": "slashdocs",
      "description": "Client ID of your Google OAuth web client",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "SLASHDOCS_RENDER_ORIGIN",
      "service": "slashdocs",
      "description": "Public URL where documents render.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SLASHDOCS_KV_EVENTS_MODE",
      "service": "slashdocs",
      "description": "How live comments and presence sync between the two services.",
      "secret": false,
      "strategy": "default",
      "default": "notify"
    },
    {
      "key": "GOOGLE_OAUTH_CLIENT_SECRET",
      "service": "slashdocs",
      "description": "Client secret of the same Google OAuth web client.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "slashdocs-google-oauth"
      }
    },
    "cli": "railway deploy --template slashdocs-google-oauth",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "e54060a0-542f-4724-923f-9ee390c73dea",
            "serializedConfig": {
              "buckets": {
                "25a37904-be38-4fc7-bb09-f291433fca73": {
                  "name": "slashdocs-docs"
                }
              },
              "services": {
                "0b2fa614-f71a-4958-9ee5-1ea9256568eb": {
                  "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": "Directory where Postgres stores its data inside the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private hostname of the Postgres service",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port Postgres listens on",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": " Database user (mirrors POSTGRES_USER)",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Database name (mirrors POSTGRES_DB)",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Database password (mirrors POSTGRES_PASSWORD)",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Name of the database created on first start",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection URL for Postgres, built from the variables below",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first start",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "Validity in days of the self-signed SSL certificate",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, generated randomly at deploy",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Seconds to let connections finish before an old deployment stops",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "0b2fa614-f71a-4958-9ee5-1ea9256568eb": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "128ea354-d093-49e7-95ae-040ce77033bc": {
                  "icon": "https://devicons.railway.app/  https://raw.githubusercontent.com/razorpay/slashdocs/master/frontend/public/favicon.svg",
                  "name": "slashdocs-render",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/readyz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "razorpay/slashdocs:0.3"
                  },
                  "variables": {
                    "BLOB_BUCKET": {
                      "isOptional": false,
                      "description": "Storage bucket for document versions, taken from slashdocs-docs.",
                      "defaultValue": "${{slashdocs-docs.BUCKET}}"
                    },
                    "BLOB_REGION": {
                      "isOptional": false,
                      "description": "S3 signing region for the bucket. Keep \"auto\".",
                      "defaultValue": "auto"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection, taken from the Postgres service.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "BLOB_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3 endpoint of the bucket",
                      "defaultValue": "${{slashdocs-docs.ENDPOINT}}"
                    },
                    "SESSION_SECRET": {
                      "isOptional": false,
                      "description": "session key as the slashdocs service",
                      "defaultValue": "${{slashdocs.SESSION_SECRET}}"
                    },
                    "SLASHDOCS_MIGRATE": {
                      "isOptional": false,
                      "description": "Keep \"false\". Only the slashdocs service runs database migrations.",
                      "defaultValue": "false"
                    },
                    "BLOB_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{slashdocs-docs.ACCESS_KEY_ID}}"
                    },
                    "SLASHDOCS_APP_ORIGIN": {
                      "isOptional": false,
                      "description": "Public URL of the app",
                      "defaultValue": "https://${{slashdocs.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "BLOB_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": " Bucket secret key",
                      "defaultValue": "${{slashdocs-docs.SECRET_ACCESS_KEY}}"
                    },
                    "GOOGLE_OAUTH_CLIENT_ID": {
                      "isOptional": false,
                      "description": "Google OAuth client id",
                      "defaultValue": "${{slashdocs.GOOGLE_OAUTH_CLIENT_ID}}"
                    },
                    "SLASHDOCS_RENDER_ORIGIN": {
                      "isOptional": false,
                      "description": " Public URL where documents render.",
                      "defaultValue": "https://${{slashdocs-render.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SLASHDOCS_KV_EVENTS_MODE": {
                      "isOptional": false,
                      "description": "How live comments and presence sync between the two services.",
                      "defaultValue": "notify"
                    },
                    "GOOGLE_OAUTH_CLIENT_SECRET": {
                      "isOptional": false,
                      "description": "Google OAuth client secret",
                      "defaultValue": "${{slashdocs.GOOGLE_OAUTH_CLIENT_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "2b9f5e1e-13b4-4c01-bdff-d8315739debe": {
                  "icon": "https://devicons.railway.app/  https://raw.githubusercontent.com/razorpay/slashdocs/master/frontend/public/favicon.svg",
                  "name": "slashdocs",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/readyz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "razorpay/slashdocs:0.3"
                  },
                  "variables": {
                    "BLOB_BUCKET": {
                      "isOptional": false,
                      "description": "Storage bucket for document versions, taken from slashdocs-docs.",
                      "defaultValue": "${{slashdocs-docs.BUCKET}}"
                    },
                    "BLOB_REGION": {
                      "isOptional": false,
                      "description": "S3 signing region for the bucket",
                      "defaultValue": "auto"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection, taken from the Postgres service.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "BLOB_ENDPOINT": {
                      "isOptional": false,
                      "description": "S3 endpoint of the bucket",
                      "defaultValue": "${{slashdocs-docs.ENDPOINT}}"
                    },
                    "SESSION_SECRET": {
                      "isOptional": false,
                      "description": "Key for signing login sessions.",
                      "defaultValue": "{{SESSION_SECRET}}"
                    },
                    "BLOB_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{slashdocs-docs.ACCESS_KEY_ID}}"
                    },
                    "SLASHDOCS_APP_ORIGIN": {
                      "isOptional": false,
                      "description": "Public URL of the app.",
                      "defaultValue": "https://${{slashdocs.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "BLOB_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{slashdocs-docs.SECRET_ACCESS_KEY}}"
                    },
                    "GOOGLE_OAUTH_CLIENT_ID": {
                      "isOptional": false,
                      "description": "Client ID of your Google OAuth web client",
                      "defaultValue": "{{GOOGLE_OAUTH_CLIENT_ID}}"
                    },
                    "SLASHDOCS_RENDER_ORIGIN": {
                      "isOptional": false,
                      "description": "Public URL where documents render.",
                      "defaultValue": "https://${{slashdocs-render.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SLASHDOCS_KV_EVENTS_MODE": {
                      "isOptional": false,
                      "description": "How live comments and presence sync between the two services.",
                      "defaultValue": "notify"
                    },
                    "GOOGLE_OAUTH_CLIENT_SECRET": {
                      "isOptional": false,
                      "description": "Client secret of the same Google OAuth web client.",
                      "defaultValue": "{{GOOGLE_OAUTH_CLIENT_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "slashdocs-render",
      "method": "GET",
      "path": "/readyz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-10-17T16:14:42.276Z",
  "generator_version": "0.1.0"
}
