{
  "manifest_version": "1.0.0",
  "template": {
    "id": "a5aaca3c-b5e9-4c76-807c-53d6bfffea8e",
    "slug": "gproxy",
    "name": "GProxy",
    "description": "Multi-provider LLM proxy with built-in admin frontend",
    "url": "https://railway.com/deploy/gproxy",
    "upstream": {
      "image": "ghcr.io/leenhawk/gproxy:latest"
    }
  },
  "services": [
    {
      "name": "gproxy",
      "source": {
        "image": "ghcr.io/leenhawk/gproxy:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "HOST",
      "service": "gproxy",
      "description": "Provide a value for HOST.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "PORT",
      "service": "gproxy",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8787"
    },
    {
      "key": "RUST_LOG",
      "service": "gproxy",
      "description": "Provide a value for RUST_LOG.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "GPROXY_DSN",
      "service": "gproxy",
      "description": "Provide a value for GPROXY_DSN.",
      "secret": false,
      "strategy": "default",
      "default": "sqlite:///app/data/gproxy.db?mode=rwc"
    },
    {
      "key": "GPROXY_HOST",
      "service": "gproxy",
      "description": "Provide a value for GPROXY_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "GPROXY_PORT",
      "service": "gproxy",
      "description": "Provide a value for GPROXY_PORT.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "GPROXY_DATA_DIR",
      "service": "gproxy",
      "description": "Provide a value for GPROXY_DATA_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/app/data"
    },
    {
      "key": "GPROXY_ADMIN_KEY",
      "service": "gproxy",
      "description": "Provide a value for GPROXY_ADMIN_KEY.",
      "secret": true,
      "strategy": "default",
      "default": "your-strong-key"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "gproxy"
      }
    },
    "cli": "railway deploy --template gproxy",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "a5aaca3c-b5e9-4c76-807c-53d6bfffea8e",
            "serializedConfig": {
              "services": {
                "48d784fc-7e28-4d83-9aec-f63726b45469": {
                  "name": "gproxy",
                  "source": {
                    "image": "ghcr.io/leenhawk/gproxy:latest"
                  },
                  "variables": {
                    "HOST": {
                      "defaultValue": "0.0.0.0"
                    },
                    "PORT": {
                      "defaultValue": "8787"
                    },
                    "RUST_LOG": {
                      "defaultValue": "info"
                    },
                    "GPROXY_DSN": {
                      "defaultValue": "sqlite:///app/data/gproxy.db?mode=rwc"
                    },
                    "GPROXY_HOST": {
                      "defaultValue": "0.0.0.0"
                    },
                    "GPROXY_PORT": {
                      "defaultValue": "${{PORT}}"
                    },
                    "GPROXY_DATA_DIR": {
                      "defaultValue": "/app/data"
                    },
                    "GPROXY_ADMIN_KEY": {
                      "description": "",
                      "defaultValue": "your-strong-key"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8787": {
                        "port": 8787
                      }
                    }
                  },
                  "volumeMounts": {
                    "48d784fc-7e28-4d83-9aec-f63726b45469": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-08T19:02:29.191Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_050c52a5c99944c8bad6",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 25,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "gproxy"
  }
}
