{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d5274137-414c-4e69-a7c3-510c6d0d082c",
    "slug": "statview",
    "name": "StatView",
    "description": "Simple front-end for displaying graphs for stats stored in Prometheus.",
    "url": "https://railway.com/deploy/statview",
    "upstream": {
      "image": "ghcr.io/richard5mith/statview:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "StatView",
      "source": {
        "image": "ghcr.io/richard5mith/statview:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "AUTH_TYPE",
      "service": "StatView",
      "description": "none or github",
      "secret": false,
      "strategy": "default",
      "default": "none"
    },
    {
      "key": "SECRET_KEY",
      "service": "StatView",
      "description": "Secret key for cookie signing",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "PROMETHEUS_URL",
      "service": "StatView",
      "description": "URL of your prometheus instance.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "GUNICORN_WORKERS",
      "service": "StatView",
      "description": "How many gunicorn workers to run.",
      "secret": false,
      "strategy": "default",
      "default": "2"
    },
    {
      "key": "LIVE_REFRESH_SECONDS",
      "service": "StatView",
      "description": "Default live refresh time in seconds.",
      "secret": false,
      "strategy": "default",
      "default": "15"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "statview"
      }
    },
    "cli": "railway deploy --template statview",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d5274137-414c-4e69-a7c3-510c6d0d082c",
            "serializedConfig": {
              "services": {
                "bf4eb472-4c94-4a96-84ba-766b2d9b79e4": {
                  "name": "StatView",
                  "deploy": {
                    "healthcheckPath": "/healthz"
                  },
                  "source": {
                    "image": "ghcr.io/richard5mith/statview:latest"
                  },
                  "variables": {
                    "AUTH_TYPE": {
                      "isOptional": true,
                      "description": "none or github",
                      "defaultValue": "none"
                    },
                    "SECRET_KEY": {
                      "isOptional": true,
                      "description": "Secret key for cookie signing",
                      "defaultValue": "{{SECRET_KEY}}"
                    },
                    "PROMETHEUS_URL": {
                      "description": "URL of your prometheus instance.",
                      "defaultValue": "{{PROMETHEUS_URL}}"
                    },
                    "GITHUB_CLIENT_ID": {
                      "isOptional": true,
                      "description": "From your GitHub OAuth app",
                      "defaultValue": ""
                    },
                    "GUNICORN_WORKERS": {
                      "isOptional": true,
                      "description": "How many gunicorn workers to run.",
                      "defaultValue": "2"
                    },
                    "GITHUB_ALLOWED_ORG": {
                      "isOptional": true,
                      "description": "Limit to this org slug",
                      "defaultValue": ""
                    },
                    "OAUTH_REDIRECT_URL": {
                      "isOptional": true,
                      "description": "Override callback URL",
                      "defaultValue": ""
                    },
                    "PROMETHEUS_PASSWORD": {
                      "isOptional": true,
                      "description": "Optional, if you use basic auth on prom server",
                      "defaultValue": ""
                    },
                    "PROMETHEUS_USERNAME": {
                      "isOptional": true,
                      "description": "Optional, if you use basic auth on prom server",
                      "defaultValue": ""
                    },
                    "GITHUB_ALLOWED_USERS": {
                      "isOptional": true,
                      "description": "Limit to these github users (comma sep)",
                      "defaultValue": ""
                    },
                    "GITHUB_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "From your GitHub OAuth app",
                      "defaultValue": ""
                    },
                    "LIVE_REFRESH_SECONDS": {
                      "isOptional": true,
                      "description": "Default live refresh time in seconds.",
                      "defaultValue": "15"
                    },
                    "SESSION_COOKIE_SECURE": {
                      "isOptional": true,
                      "description": "Set to true for HTTPS only cookies",
                      "defaultValue": ""
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "bf4eb472-4c94-4a96-84ba-766b2d9b79e4": {
                      "mountPath": "/app/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "StatView",
      "method": "GET",
      "path": "/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0"
}
