{
  "manifest_version": "1.0.0",
  "template": {
    "id": "01418edc-8437-44b5-ab30-437ef6f53255",
    "slug": "happier-relay-server",
    "name": "Happier Relay Server",
    "description": "Your own E2EE Happier relay to steer Claude Code and Codex from any device",
    "url": "https://railway.com/deploy/happier-relay-server",
    "upstream": {
      "image": "ghcr.io/youssefsiam38/happier-railway:1.0.0@sha256:02d0c4a742b59df51e4d7eb9d81aba042fa1523441c319c4c7d2f79735065134"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "happier",
      "source": {
        "image": "ghcr.io/youssefsiam38/happier-railway:1.0.0@sha256:02d0c4a742b59df51e4d7eb9d81aba042fa1523441c319c4c7d2f79735065134"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "happier",
      "description": "Port the relay listens on; Railway routes to and health-checks it. Keep it.",
      "secret": false,
      "strategy": "default",
      "default": "3005"
    },
    {
      "key": "HAPPIER_WEBAPP_URL",
      "service": "happier",
      "description": "Where the web app is served (the same domain). Used for OAuth returns and links.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "HANDY_MASTER_SECRET",
      "service": "happier",
      "description": "Signs auth tokens, generated. Changing it signs every device out (they sign in again with their keys).",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SIGNUP_ACCOUNT_LIMIT",
      "service": "happier",
      "description": "Sign-up stays open until this many accounts exist, then closes (restart). Raise it and redeploy to add people; 0 = always open.",
      "secret": false,
      "strategy": "default",
      "default": "1"
    },
    {
      "key": "HAPPIER_PUBLIC_SERVER_URL",
      "service": "happier",
      "description": "The relay's public URL, put in QR codes and deep links. Your Railway domain; change it if you add a custom domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "HAPPIER_SERVER_TRUST_PROXY",
      "service": "happier",
      "description": "Railway's edge proxy range; lets rate limits see each client's real IP. Keep it.",
      "secret": false,
      "strategy": "default",
      "default": "100.64.0.0/10"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "happier",
      "description": "Startup applies database migrations.",
      "secret": false,
      "strategy": "default",
      "default": "120"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "happier-relay-server"
      }
    },
    "cli": "railway deploy --template happier-relay-server",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "01418edc-8437-44b5-ab30-437ef6f53255",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4d747a82-1884-4528-80b7-922ccb78acc0": {
                  "icon": null,
                  "name": "happier",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/youssefsiam38/happier-railway:1.0.0@sha256:02d0c4a742b59df51e4d7eb9d81aba042fa1523441c319c4c7d2f79735065134"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the relay listens on; Railway routes to and health-checks it. Keep it.",
                      "defaultValue": "3005"
                    },
                    "HAPPIER_WEBAPP_URL": {
                      "isOptional": false,
                      "description": "Where the web app is served (the same domain). Used for OAuth returns and links.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "HANDY_MASTER_SECRET": {
                      "isOptional": false,
                      "description": "Signs auth tokens, generated. Changing it signs every device out (they sign in again with their keys).",
                      "defaultValue": "{{HANDY_MASTER_SECRET}}"
                    },
                    "SIGNUP_ACCOUNT_LIMIT": {
                      "isOptional": false,
                      "description": "Sign-up stays open until this many accounts exist, then closes (restart). Raise it and redeploy to add people; 0 = always open.",
                      "defaultValue": "1"
                    },
                    "HAPPIER_PUBLIC_SERVER_URL": {
                      "isOptional": false,
                      "description": "The relay's public URL, put in QR codes and deep links. Your Railway domain; change it if you add a custom domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "HAPPIER_SERVER_TRUST_PROXY": {
                      "isOptional": false,
                      "description": "Railway's edge proxy range; lets rate limits see each client's real IP. Keep it.",
                      "defaultValue": "100.64.0.0/10"
                    },
                    "AUTH_ANONYMOUS_SIGNUP_ENABLED": {
                      "isOptional": true,
                      "description": "Optional. Setting true/false yourself overrides SIGNUP_ACCOUNT_LIMIT."
                    },
                    "HAPPIER_SENTRY_USE_CENTRAL_DSN": {
                      "isOptional": true,
                      "description": "Optional. 1 sends server crash reports to the Happier project's Sentry (off by default)."
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "Startup applies database migrations.",
                      "defaultValue": "120"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3005": {
                        "port": 3005
                      }
                    }
                  },
                  "volumeMounts": {
                    "4d747a82-1884-4528-80b7-922ccb78acc0": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "happier",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-23T16:14:49.125Z",
  "generator_version": "0.1.0"
}
