{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5b3f246e-d1f4-4155-a5f2-6fac834a55d6",
    "slug": "zWSDEh",
    "name": "Opengist",
    "description": "Self-hosted pastebin powered by Git, open-source alternative to Github Gist",
    "url": "https://railway.com/deploy/zWSDEh",
    "upstream": {
      "image": "ghcr.io/thomiceli/opengist:1.10"
    }
  },
  "services": [
    {
      "name": "opengist",
      "source": {
        "image": "ghcr.io/thomiceli/opengist:1.10"
      },
      "needs_volume": true,
      "volume_mount_path": "/opengist",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "opengist",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OG_DB_URI",
      "service": "opengist",
      "description": "URI of the database.",
      "secret": false,
      "strategy": "default",
      "default": "opengist.db"
    },
    {
      "key": "OG_HTTP_PORT",
      "service": "opengist",
      "description": "The port on which the HTTP server should listen.",
      "secret": false,
      "strategy": "default",
      "default": "6157"
    },
    {
      "key": "OG_LOG_LEVEL",
      "service": "opengist",
      "description": "Set the log level to one of the following: debug, info, warn, error, fatal.",
      "secret": false,
      "strategy": "default",
      "default": "warn"
    },
    {
      "key": "OG_GITEA_NAME",
      "service": "opengist",
      "description": "Set Gitea/Forgejo instance name.",
      "secret": false,
      "strategy": "default",
      "default": "Gitea"
    },
    {
      "key": "OG_EXTERNAL_URL",
      "service": "opengist",
      "description": "Public URL to access to Opengist.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "OG_OPENGIST_HOME",
      "service": "opengist",
      "description": "Path to the directory where Opengist stores its data.",
      "secret": false,
      "strategy": "default",
      "default": "/opengist"
    },
    {
      "key": "OG_SSH_GIT_ENABLED",
      "service": "opengist",
      "description": "Likely won't work reliably externally due to Railway's TCP proxy using different ports.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "OG_HTTP_GIT_ENABLED",
      "service": "opengist",
      "description": "Set to false to disable HTTP Git operations.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "OG_GIT_DEFAULT_BRANCH",
      "service": "opengist",
      "description": "Default branch name used by Opengist when initializing Git repositories.",
      "secret": false,
      "strategy": "default",
      "default": "main"
    },
    {
      "key": "OG_SQLITE_JOURNAL_MODE",
      "service": "opengist",
      "description": "Set the journal mode for SQLite. More info here: https://www.sqlite.org/pragma.html#pragma_journal_mode",
      "secret": false,
      "strategy": "default",
      "default": "WAL"
    },
    {
      "key": "OG_SSH_EXTERNAL_DOMAIN",
      "service": "opengist",
      "description": "Public domain for the Git SSH connection, if it has to be different from the HTTP one.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "zWSDEh"
      }
    },
    "cli": "railway deploy --template zWSDEh",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5b3f246e-d1f4-4155-a5f2-6fac834a55d6",
            "serializedConfig": {
              "services": {
                "fdc00afb-8d40-4429-834a-a55cbcbcd8da": {
                  "icon": null,
                  "name": "opengist",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "ghcr.io/thomiceli/opengist:1.10"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "defaultValue": "${{opengist.OG_HTTP_PORT}}"
                    },
                    "OG_INDEX": {
                      "isOptional": true,
                      "description": "Define the code indexer (either bleve, meilisearch, or empty for no index).",
                      "defaultValue": ""
                    },
                    "OG_DB_URI": {
                      "isOptional": true,
                      "description": "URI of the database.",
                      "defaultValue": "opengist.db"
                    },
                    "OG_GITEA_URL": {
                      "isOptional": true,
                      "description": "The URL for Gitea/Forgejo OAuth. Leave blank if not using OAuth.",
                      "defaultValue": ""
                    },
                    "OG_HTTP_PORT": {
                      "isOptional": true,
                      "description": "The port on which the HTTP server should listen.",
                      "defaultValue": "6157"
                    },
                    "OG_LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Set the log level to one of the following: debug, info, warn, error, fatal.",
                      "defaultValue": "warn"
                    },
                    "OG_GITEA_NAME": {
                      "isOptional": true,
                      "description": "Set Gitea/Forgejo instance name.",
                      "defaultValue": "Gitea"
                    },
                    "OG_CUSTOM_NAME": {
                      "isOptional": true,
                      "description": "The name of your instance, to be displayed in the tab title",
                      "defaultValue": ""
                    },
                    "OG_EXTERNAL_URL": {
                      "isOptional": true,
                      "description": "Public URL to access to Opengist.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "OG_GITEA_SECRET": {
                      "isOptional": true,
                      "description": "The secret for Gitea/Forgejo OAuth. The URL for Gitea/Forgejo OAuth. Leave blank if not using OAuth.",
                      "defaultValue": ""
                    },
                    "OG_OPENGIST_HOME": {
                      "isOptional": true,
                      "description": "Path to the directory where Opengist stores its data.",
                      "defaultValue": "/opengist"
                    },
                    "OG_SSH_GIT_ENABLED": {
                      "isOptional": true,
                      "description": "Likely won't work reliably externally due to Railway's TCP proxy using different ports.",
                      "defaultValue": "false"
                    },
                    "OG_GITEA_CLIENT_KEY": {
                      "isOptional": true,
                      "description": "The client key for Gitea/Forgejo OAuth. The URL for Gitea/Forgejo OAuth. Leave blank if not using OAuth.",
                      "defaultValue": ""
                    },
                    "OG_HTTP_GIT_ENABLED": {
                      "isOptional": true,
                      "description": "Set to false to disable HTTP Git operations.",
                      "defaultValue": "true"
                    },
                    "OG_GIT_DEFAULT_BRANCH": {
                      "isOptional": true,
                      "description": "Default branch name used by Opengist when initializing Git repositories.",
                      "defaultValue": "main"
                    },
                    "OG_SQLITE_JOURNAL_MODE": {
                      "isOptional": true,
                      "description": "Set the journal mode for SQLite. More info here: https://www.sqlite.org/pragma.html#pragma_journal_mode",
                      "defaultValue": "WAL"
                    },
                    "OG_SSH_EXTERNAL_DOMAIN": {
                      "isOptional": false,
                      "description": "Public domain for the Git SSH connection, if it has to be different from the HTTP one.",
                      "defaultValue": "${{RAILWAY_TCP_PROXY_DOMAIN}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "fdc00afb-8d40-4429-834a-a55cbcbcd8da": {
                      "mountPath": "/opengist"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-21T07:36:23.425Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_351e514cc6f74e578a71",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 132,
    "typical_build_seconds": 0,
    "typical_start_seconds": 5,
    "slowest_service": "opengist"
  }
}
