{
  "manifest_version": "1.0.0",
  "template": {
    "id": "aa851553-3a09-482d-8031-02e85a8c2378",
    "slug": "certmate",
    "name": "certmate",
    "description": "SSL certificate management system with a web UI and REST API.",
    "url": "https://railway.com/deploy/certmate",
    "upstream": {
      "image": "fabriziosalmi/certmate:latest"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "certmate",
      "source": {
        "image": "fabriziosalmi/certmate:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/certificates",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "certmate",
      "description": "Port the app listens on inside the container",
      "secret": false,
      "strategy": "default",
      "default": "8000"
    },
    {
      "key": "FLASK_ENV",
      "service": "certmate",
      "description": "Flask environment mode; disables debug mode and enables production settings",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "LOG_LEVEL",
      "service": "certmate",
      "description": "Verbosity of application logging",
      "secret": false,
      "strategy": "default",
      "default": "INFO"
    },
    {
      "key": "SECRET_KEY",
      "service": "certmate",
      "description": "Auto-generated secret used for signing sessions/tokens (Flask)",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "BEHIND_PROXY",
      "service": "certmate",
      "description": "Tells the app it's running behind a reverse proxy, so it trusts forwarded headers (X-Forwarded-For, etc.)",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "certmate",
      "description": "UID the process runs as inside the container (0 = root)",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "API_BEARER_TOKEN",
      "service": "certmate",
      "description": "Bearer token for authenticating API requests, mirrored from the \"certmate\" service's SECRET_KEY",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "CLOUDFLARE_TOKEN",
      "service": "certmate",
      "description": "API token for Cloudflare, used to manage DNS records for certificate issuance/validation",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LETSENCRYPT_EMAIL",
      "service": "certmate",
      "description": "Email address used for Let's Encrypt account registration and expiry notices",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "certmate"
      }
    },
    "cli": "railway deploy --template certmate",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "aa851553-3a09-482d-8031-02e85a8c2378",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "5e8b3988-7c02-422e-8473-549ca852c798": {
                  "icon": "https://www.certmate.org/assets/certmate_logo.png",
                  "name": "certmate",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "fabriziosalmi/certmate:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the app listens on inside the container",
                      "defaultValue": "8000"
                    },
                    "FLASK_ENV": {
                      "isOptional": false,
                      "description": "Flask environment mode; disables debug mode and enables production settings",
                      "defaultValue": "production"
                    },
                    "LOG_LEVEL": {
                      "isOptional": false,
                      "description": "Verbosity of application logging",
                      "defaultValue": "INFO"
                    },
                    "SECRET_KEY": {
                      "isOptional": false,
                      "description": "Auto-generated secret used for signing sessions/tokens (Flask)",
                      "defaultValue": "{{SECRET_KEY}}"
                    },
                    "BEHIND_PROXY": {
                      "isOptional": false,
                      "description": "Tells the app it's running behind a reverse proxy, so it trusts forwarded headers (X-Forwarded-For, etc.)",
                      "defaultValue": "true"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "UID the process runs as inside the container (0 = root)",
                      "defaultValue": "0"
                    },
                    "API_BEARER_TOKEN": {
                      "isOptional": false,
                      "description": "Bearer token for authenticating API requests, mirrored from the \"certmate\" service's SECRET_KEY",
                      "defaultValue": "${{certmate.SECRET_KEY}}"
                    },
                    "CLOUDFLARE_TOKEN": {
                      "isOptional": false,
                      "description": "API token for Cloudflare, used to manage DNS records for certificate issuance/validation",
                      "defaultValue": "{{CLOUDFLARE_TOKEN}}"
                    },
                    "LETSENCRYPT_EMAIL": {
                      "isOptional": false,
                      "description": "Email address used for Let's Encrypt account registration and expiry notices",
                      "defaultValue": "{{LETSENCRYPT_EMAIL}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {},
                      "<hasDomain>:8000": {
                        "port": 8000
                      }
                    }
                  },
                  "volumeMounts": {
                    "5e8b3988-7c02-422e-8473-549ca852c798": {
                      "mountPath": "/app/certificates"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "certmate",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-27T04:14:50.332Z",
  "generator_version": "0.1.0"
}
