{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d2f08b2e-3302-41b6-b4e9-0c1a04180b08",
    "slug": "posthog-proxy",
    "name": "PostHog Reverse Proxy",
    "description": "Capture more usage data in PostHog using a reverse proxy",
    "url": "https://railway.com/deploy/posthog-proxy",
    "upstream": {
      "repo_url": "https://github.com/PostHog/posthog-nginx-reverse-proxy"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "PostHog Reverse Proxy",
      "source": {
        "repo": "https://github.com/PostHog/posthog-nginx-reverse-proxy"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "SERVER_NAME",
      "service": "PostHog Reverse Proxy",
      "description": "Should always be ${{RAILWAY_PUBLIC_DOMAIN}}",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "POSTHOG_CLOUD_REGION",
      "service": "PostHog Reverse Proxy",
      "description": "Either: us or eu",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "posthog-proxy"
      }
    },
    "cli": "railway deploy --template posthog-proxy",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d2f08b2e-3302-41b6-b4e9-0c1a04180b08",
            "serializedConfig": {
              "services": {
                "a87add3b-870c-4dbb-b863-9361cd5ef811": {
                  "icon": "https://avatars.githubusercontent.com/u/60330232?s=200&v=4",
                  "name": "PostHog Reverse Proxy",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "repo": "PostHog/posthog-nginx-reverse-proxy",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "SERVER_NAME": {
                      "isOptional": false,
                      "description": "Should always be ${{RAILWAY_PUBLIC_DOMAIN}}",
                      "defaultValue": "${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "POSTHOG_CLOUD_REGION": {
                      "isOptional": false,
                      "description": "Either: us or eu",
                      "defaultValue": "{{POSTHOG_CLOUD_REGION}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "PostHog Reverse Proxy",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-04T05:44:27.711Z",
  "generator_version": "0.1.0"
}
