{
  "manifest_version": "1.0.0",
  "template": {
    "id": "bca175e2-57f9-43ac-929e-fa90a465ac8b",
    "slug": "ntfy-private-push",
    "name": "ntfy private push",
    "description": "Private ntfy topics with scoped credentials and persistent replay.",
    "url": "https://railway.com/deploy/ntfy-private-push",
    "upstream": {
      "repo_url": "https://github.com/tech-progress/ntfy-private-push"
    }
  },
  "services": [
    {
      "name": "ntfy",
      "source": {
        "repo": "https://github.com/tech-progress/ntfy-private-push"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/ntfy",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "ntfy",
      "description": "HTTP listener and healthcheck target, default 8080.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "NTFY_BASE_URL",
      "service": "ntfy",
      "description": "Public HTTPS base URL, matching the Railway domain; required for links and browser push.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NTFY_TOPIC_PREFIX",
      "service": "ntfy",
      "description": "Topic ACL grants prefix*; ntfy also allows the user's own private sync topic.",
      "secret": false,
      "strategy": "default",
      "default": "alerts-"
    },
    {
      "key": "NTFY_BOOTSTRAP_USER",
      "service": "ntfy",
      "description": "Non-admin user reconciled at startup; alphanumeric, dash and underscore only.",
      "secret": false,
      "strategy": "default",
      "default": "publisher"
    },
    {
      "key": "NTFY_CACHE_DURATION",
      "service": "ntfy",
      "description": "Finite persistent message replay retention, default 24h; not indefinite delivery.",
      "secret": false,
      "strategy": "default",
      "default": "24h"
    },
    {
      "key": "NTFY_MANAGER_INTERVAL",
      "service": "ntfy",
      "description": "Message pruning and statistics cadence, default 1m; retention is enforced on this schedule.",
      "secret": false,
      "strategy": "default",
      "default": "1m"
    },
    {
      "key": "NTFY_BOOTSTRAP_PASSWORD",
      "service": "ntfy",
      "description": "Generated 32-character password; persisted bcrypt credential is rotated on each startup.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "ntfy-private-push"
      }
    },
    "cli": "railway deploy --template ntfy-private-push",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "bca175e2-57f9-43ac-929e-fa90a465ac8b",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "c0f463c5-7707-4de2-9653-1372d87abff9": {
                  "icon": null,
                  "name": "ntfy",
                  "build": {
                    "builder": "DOCKERFILE",
                    "dockerfilePath": "Dockerfile"
                  },
                  "deploy": {
                    "healthcheckPath": "/v1/health",
                    "healthcheckTimeout": 120
                  },
                  "source": {
                    "repo": "tech-progress/ntfy-private-push",
                    "branch": "release-v1",
                    "rootDirectory": "/"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP listener and healthcheck target, default 8080.",
                      "defaultValue": "8080"
                    },
                    "NTFY_BASE_URL": {
                      "isOptional": false,
                      "description": "Public HTTPS base URL, matching the Railway domain; required for links and browser push.",
                      "defaultValue": "https://${{ntfy.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NTFY_TOPIC_PREFIX": {
                      "isOptional": false,
                      "description": "Topic ACL grants prefix*; ntfy also allows the user's own private sync topic.",
                      "defaultValue": "alerts-"
                    },
                    "NTFY_BOOTSTRAP_USER": {
                      "isOptional": false,
                      "description": "Non-admin user reconciled at startup; alphanumeric, dash and underscore only.",
                      "defaultValue": "publisher"
                    },
                    "NTFY_CACHE_DURATION": {
                      "isOptional": false,
                      "description": "Finite persistent message replay retention, default 24h; not indefinite delivery.",
                      "defaultValue": "24h"
                    },
                    "NTFY_MANAGER_INTERVAL": {
                      "isOptional": false,
                      "description": "Message pruning and statistics cadence, default 1m; retention is enforced on this schedule.",
                      "defaultValue": "1m"
                    },
                    "NTFY_BOOTSTRAP_PASSWORD": {
                      "isOptional": false,
                      "description": "Generated 32-character password; persisted bcrypt credential is rotated on each startup.",
                      "defaultValue": "{{NTFY_BOOTSTRAP_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "customDomains": {},
                    "serviceDomains": {
                      "<hasDomain>": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "c0f463c5-7707-4de2-9653-1372d87abff9": {
                      "sizeMB": 5000,
                      "mountPath": "/var/lib/ntfy"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "ntfy",
      "method": "GET",
      "path": "/v1/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-04T22:14:51.474Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-10-04T20:30:51.530Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_d3c8cdd8907d4d7f8de2",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 58,
    "typical_build_seconds": 30,
    "typical_start_seconds": 10,
    "slowest_service": "ntfy"
  }
}
