{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d85a13f3-86c6-41a8-aae6-4f3bfc6b5ffc",
    "slug": "aihot-202611-ai-hot-topics-site-with-dai",
    "name": "AIHOT AI Hot Topics Site with Daily Reports",
    "description": "Self-hosted AI news site: LLM-scored picks, trending events, daily reports",
    "url": "https://railway.com/deploy/aihot-202611-ai-hot-topics-site-with-dai",
    "upstream": {
      "repo_url": "https://github.com/baranberkay96/aihot-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Gateway",
      "source": {
        "repo": "https://github.com/baranberkay96/aihot-railway"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Backend",
      "source": {
        "repo": "https://github.com/baranberkay96/aihot-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Web",
      "source": {
        "repo": "https://github.com/baranberkay96/aihot-railway"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Gateway",
      "description": "Port Caddy listens on; the public domain and Railway's healthcheck (/gateway-health) use it.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "AIHOT_WEB_UPSTREAM",
      "service": "Gateway",
      "description": "Private host:port of the Web service that Caddy forwards every request to.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PORT",
      "service": "Backend",
      "description": "API port (dual-stack ::). Railway's healthcheck calls /api/health here, which also checks the database.",
      "secret": false,
      "strategy": "default",
      "default": "3001"
    },
    {
      "key": "SITE_URL",
      "service": "Backend",
      "description": "Same public address as Web (change it there).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LLM_MODEL",
      "service": "Backend",
      "description": "Model every step uses unless changed per step in the admin (Models page) or with PREFILTER_MODEL, SCORE_MODEL, ...",
      "secret": false,
      "strategy": "default",
      "default": "deepseek-flash"
    },
    {
      "key": "LLM_VISION",
      "service": "Backend",
      "description": "true if the model accepts images (selected items then also use their first image).",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LLM_API_KEY",
      "service": "Backend",
      "description": "Required for selection and write-ups: API key of any OpenAI-compatible model service (DeepSeek by default). The site boots without it, but items wait unscored until it is set. Billed by that provider.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_URL",
      "service": "Backend",
      "description": "PostgreSQL over the private network.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LLM_BASE_URL",
      "service": "Backend",
      "description": "OpenAI-compatible base URL of the model service, e.g. https://api.openai.com/v1 or https://openrouter.ai/api/v1.",
      "secret": false,
      "strategy": "default",
      "default": "https://api.deepseek.com/v1"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "Backend",
      "description": "Password for /admin, generated at deploy (at least 12 characters). Changing it signs out existing admin sessions.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "LLM_EXTRA_JSON",
      "service": "Backend",
      "description": "Provider-specific request fields as JSON. The default turns DeepSeek's thinking off; clear it for providers that reject unknown fields (OpenAI).",
      "secret": false,
      "strategy": "default",
      "default": "{\"thinking\":{\"type\":\"disabled\"}}"
    },
    {
      "key": "SESSION_SECRET",
      "service": "Backend",
      "description": "Signs admin sessions; generated. Rotating it signs everyone out.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "COLLECT_ENABLED",
      "service": "Backend",
      "description": "Safety valve: only 'true' fetches sources (and their icons). Set false to pause collection.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "TEMPLATE_BACKUPS",
      "service": "Backend",
      "description": "false turns the daily backup to the Bucket off.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "INGEST_RATE_LIMIT",
      "service": "Backend",
      "description": "Pushes per client and minute on /api/ingest/items (upstream compose default); 0 turns the limit off.",
      "secret": false,
      "strategy": "default",
      "default": "10"
    },
    {
      "key": "MODEL_CALLS_ENABLED",
      "service": "Backend",
      "description": "Safety valve: only 'true' calls models. Set false to stop all model spending.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "IMG_PROXY_SIGN_SECRET",
      "service": "Backend",
      "description": "Signs image-proxy URLs so the proxy only fetches images the site itself links; generated.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TEMPLATE_SEED_SOURCES",
      "service": "Backend",
      "description": "Each deploy adds the sources of industry/sources.json that are missing (18 AI news feeds upstream). Pause unwanted sources in the admin instead of deleting them, or set false.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DB_BACKUP_STORE_BUCKET",
      "service": "Backend",
      "description": "Bucket the backups go to (daily/, weekly/, monthly/ prefixes).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_BACKUP_STORE_REGION",
      "service": "Backend",
      "description": "Bucket region for request signing.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TEMPLATE_BACKUP_ON_BOOT",
      "service": "Backend",
      "description": "true runs one backup right after each start (to test the Bucket wiring or before an upgrade); set it back to false afterwards.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "TEMPLATE_BACKUP_ENDPOINT",
      "service": "Backend",
      "description": "Bucket endpoint; the template derives DB_BACKUP_STORE_DOMAIN ({bucket}.{endpoint host}, virtual-hosted style) from it.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_BACKUP_STORE_SECRET_ID",
      "service": "Backend",
      "description": "Bucket access key for the daily backup (pg_dump + uploads, 04:10 China time).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DB_BACKUP_STORE_SECRET_KEY",
      "service": "Backend",
      "description": "Bucket secret key for the daily backup.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Backend",
      "description": "Seconds a redeploy waits for the worker to finish in-flight model calls and backups before stopping it (upstream allows up to 470).",
      "secret": false,
      "strategy": "default",
      "default": "300"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot; AIHOT's migrations create its tables (and pg_trgm) here.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string; Backend references it.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password, generated at deploy (letters only, so it is safe inside DATABASE_URL). Changing it later needs ALTER USER too.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "Web",
      "description": "Port of the web server (dual-stack ::); Railway's healthcheck uses it at /terms, a page that renders without the API.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "SITE_URL",
      "service": "Web",
      "description": "Address readers use. Links, RSS, sitemap, share images and MCP host checks use it; set https://{your-domain} after adding a custom domain (Backend follows).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "TRUST_PROXY",
      "service": "Web",
      "description": "Read the visitor address from X-Forwarded-For (set by the Gateway) so sign-in and feedback limits count real visitors. Keep true: Web has no public domain.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "API_BASE_URL",
      "service": "Web",
      "description": "Backend API over the private network: page data (SSR) and every API-owned path (/api/*, RSS, sitemap, images, MCP) is proxied there.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "AIHOT_SOURCE_REPO",
      "service": "Web",
      "description": "Build source, from Backend (both services must run the same code).",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AIHOT_SOURCE_COMMIT",
      "service": "Web",
      "description": "Build source commit, from Backend.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "AIHOT_SOURCE_SHA256",
      "service": "Web",
      "description": "Build source checksum, from Backend.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "aihot-202611-ai-hot-topics-site-with-dai"
      }
    },
    "cli": "railway deploy --template aihot-202611-ai-hot-topics-site-with-dai",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d85a13f3-86c6-41a8-aae6-4f3bfc6b5ffc",
            "serializedConfig": {
              "buckets": {
                "63857015-0c3f-5835-8c4b-47cf4cdb2bcb": {
                  "name": "Backups"
                }
              },
              "services": {
                "39171c38-6677-5e9c-a027-b3c08c1f1a7e": {
                  "icon": "https://cdn.jsdelivr.net/npm/lucide-static@1.59.0/icons/flame.svg",
                  "name": "Gateway",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "healthcheckPath": "/gateway-health",
                    "restartPolicyType": "ON_FAILURE",
                    "healthcheckTimeout": 120,
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "baranberkay96/aihot-railway",
                    "branch": "main",
                    "rootDirectory": "/services/gateway"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port Caddy listens on; the public domain and Railway's healthcheck (/gateway-health) use it.",
                      "defaultValue": "8080"
                    },
                    "AIHOT_WEB_UPSTREAM": {
                      "isOptional": true,
                      "description": "Private host:port of the Web service that Caddy forwards every request to.",
                      "defaultValue": "${{Web.RAILWAY_PRIVATE_DOMAIN}}:${{Web.PORT}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "44ffbcfd-aa1b-5021-9978-122c019dd393": {
                  "icon": "https://cdn.jsdelivr.net/npm/lucide-static@1.59.0/icons/server-cog.svg",
                  "name": "Backend",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "startCommand": "/app/railway/entrypoint.sh backend",
                    "healthcheckPath": "/api/health",
                    "preDeployCommand": [
                      "/app/railway/entrypoint.sh predeploy"
                    ],
                    "restartPolicyType": "ALWAYS",
                    "healthcheckTimeout": 600,
                    "preDeployTimeoutSeconds": 900
                  },
                  "source": {
                    "repo": "baranberkay96/aihot-railway",
                    "branch": "main",
                    "rootDirectory": "/services/aihot"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "API port (dual-stack ::). Railway's healthcheck calls /api/health here, which also checks the database.",
                      "defaultValue": "3001"
                    },
                    "SITE_URL": {
                      "isOptional": true,
                      "description": "Same public address as Web (change it there).",
                      "defaultValue": "${{Web.SITE_URL}}"
                    },
                    "LLM_MODEL": {
                      "isOptional": true,
                      "description": "Model every step uses unless changed per step in the admin (Models page) or with PREFILTER_MODEL, SCORE_MODEL, ...",
                      "defaultValue": "deepseek-flash"
                    },
                    "LLM_VISION": {
                      "isOptional": true,
                      "description": "true if the model accepts images (selected items then also use their first image).",
                      "defaultValue": "false"
                    },
                    "LLM_API_KEY": {
                      "isOptional": false,
                      "description": "Required for selection and write-ups: API key of any OpenAI-compatible model service (DeepSeek by default). The site boots without it, but items wait unscored until it is set. Billed by that provider.",
                      "defaultValue": "{{LLM_API_KEY}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": true,
                      "description": "PostgreSQL over the private network.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "GITHUB_TOKEN": {
                      "isOptional": true,
                      "description": "Optional read-only GitHub token for JSON sources on api.github.com (higher rate limit).",
                      "defaultValue": ""
                    },
                    "INGEST_TOKEN": {
                      "isOptional": true,
                      "description": "Optional token (16+ characters) that turns on POST /api/ingest/items for your own scripts to push items; empty keeps the endpoint off.",
                      "defaultValue": ""
                    },
                    "JINA_API_KEY": {
                      "isOptional": true,
                      "description": "Optional, paid per request: Jina Reader key, a browser-rendered fallback when a page's full text cannot be fetched.",
                      "defaultValue": ""
                    },
                    "LLM_BASE_URL": {
                      "isOptional": true,
                      "description": "OpenAI-compatible base URL of the model service, e.g. https://api.openai.com/v1 or https://openrouter.ai/api/v1.",
                      "defaultValue": "https://api.deepseek.com/v1"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": true,
                      "description": "Password for /admin, generated at deploy (at least 12 characters). Changing it signs out existing admin sessions.",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "LLM_EXTRA_JSON": {
                      "isOptional": true,
                      "description": "Provider-specific request fields as JSON. The default turns DeepSeek's thinking off; clear it for providers that reject unknown fields (OpenAI).",
                      "defaultValue": "{\"thinking\":{\"type\":\"disabled\"}}"
                    },
                    "SESSION_SECRET": {
                      "isOptional": true,
                      "description": "Signs admin sessions; generated. Rotating it signs everyone out.",
                      "defaultValue": "{{SESSION_SECRET}}"
                    },
                    "COLLECT_ENABLED": {
                      "isOptional": true,
                      "description": "Safety valve: only 'true' fetches sources (and their icons). Set false to pause collection.",
                      "defaultValue": "true"
                    },
                    "EMBEDDING_MODEL": {
                      "isOptional": true,
                      "description": "Embedding model, e.g. text-embedding-3-small.",
                      "defaultValue": ""
                    },
                    "TEMPLATE_BACKUPS": {
                      "isOptional": true,
                      "description": "false turns the daily backup to the Bucket off.",
                      "defaultValue": "true"
                    },
                    "AIHOT_SOURCE_REPO": {
                      "isOptional": true,
                      "description": "Build your own fork: owner/name of a public GitHub repo made from AIHOT. Empty = KKKKhazix/AIHOT. Web uses the same value.",
                      "defaultValue": ""
                    },
                    "EMBEDDING_API_KEY": {
                      "isOptional": true,
                      "description": "Key for EMBEDDING_BASE_URL.",
                      "defaultValue": ""
                    },
                    "INGEST_RATE_LIMIT": {
                      "isOptional": true,
                      "description": "Pushes per client and minute on /api/ingest/items (upstream compose default); 0 turns the limit off.",
                      "defaultValue": "10"
                    },
                    "EMBEDDING_BASE_URL": {
                      "isOptional": true,
                      "description": "Optional OpenAI-compatible /embeddings service (e.g. https://api.openai.com/v1) for better event grouping and heat; empty = text-overlap matching.",
                      "defaultValue": ""
                    },
                    "SOCIALDATA_API_KEY": {
                      "isOptional": true,
                      "description": "Optional, paid per request: SocialData key for X (Twitter) account sources. Budget limits are in the admin settings.",
                      "defaultValue": ""
                    },
                    "AIHOT_SOURCE_COMMIT": {
                      "isOptional": true,
                      "description": "Full 40-character commit SHA to build. Empty = the pinned snapshot 0ce2d00fd80b (2026-11-07).",
                      "defaultValue": ""
                    },
                    "AIHOT_SOURCE_SHA256": {
                      "isOptional": true,
                      "description": "SHA-256 of the commit's codeload tarball; verified when set (the pinned snapshot is always verified). The build log prints it.",
                      "defaultValue": ""
                    },
                    "MODEL_CALLS_ENABLED": {
                      "isOptional": true,
                      "description": "Safety valve: only 'true' calls models. Set false to stop all model spending.",
                      "defaultValue": "true"
                    },
                    "LLM_REASONING_TOKENS": {
                      "isOptional": true,
                      "description": "Only for reasoning models: extra output tokens per call for the reasoning, e.g. 4000 (set it when calls fail with finish_reason=length).",
                      "defaultValue": ""
                    },
                    "IMG_PROXY_SIGN_SECRET": {
                      "isOptional": true,
                      "description": "Signs image-proxy URLs so the proxy only fetches images the site itself links; generated.",
                      "defaultValue": "{{IMG_PROXY_SIGN_SECRET}}"
                    },
                    "TEMPLATE_SEED_SOURCES": {
                      "isOptional": true,
                      "description": "Each deploy adds the sources of industry/sources.json that are missing (18 AI news feeds upstream). Pause unwanted sources in the admin instead of deleting them, or set false.",
                      "defaultValue": "true"
                    },
                    "DB_BACKUP_STORE_BUCKET": {
                      "isOptional": true,
                      "description": "Bucket the backups go to (daily/, weekly/, monthly/ prefixes).",
                      "defaultValue": "${{Backups.BUCKET}}"
                    },
                    "DB_BACKUP_STORE_REGION": {
                      "isOptional": true,
                      "description": "Bucket region for request signing.",
                      "defaultValue": "${{Backups.REGION}}"
                    },
                    "TEMPLATE_BACKUP_ON_BOOT": {
                      "isOptional": true,
                      "description": "true runs one backup right after each start (to test the Bucket wiring or before an upgrade); set it back to false afterwards.",
                      "defaultValue": "false"
                    },
                    "TEMPLATE_BACKUP_ENDPOINT": {
                      "isOptional": true,
                      "description": "Bucket endpoint; the template derives DB_BACKUP_STORE_DOMAIN ({bucket}.{endpoint host}, virtual-hosted style) from it.",
                      "defaultValue": "${{Backups.ENDPOINT}}"
                    },
                    "DB_BACKUP_STORE_SECRET_ID": {
                      "isOptional": true,
                      "description": "Bucket access key for the daily backup (pg_dump + uploads, 04:10 China time).",
                      "defaultValue": "${{Backups.ACCESS_KEY_ID}}"
                    },
                    "DB_BACKUP_STORE_SECRET_KEY": {
                      "isOptional": true,
                      "description": "Bucket secret key for the daily backup.",
                      "defaultValue": "${{Backups.SECRET_ACCESS_KEY}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": true,
                      "description": "Seconds a redeploy waits for the worker to finish in-flight model calls and backups before stopping it (upstream allows up to 470).",
                      "defaultValue": "300"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "b7c74cb8-8e8b-58e4-9c33-52ea7fcffd8c": {
                      "mountPath": "/data"
                    }
                  }
                },
                "848a222c-e611-5ee9-a933-87a0581ca899": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:17"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot; AIHOT's migrations create its tables (and pg_trgm) here.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string; Backend references it.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password, generated at deploy (letters only, so it is safe inside DATABASE_URL). Changing it later needs ALTER USER too.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "9f650a07-329d-5346-91c5-2f4569683363": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "9b292fa5-168b-5f60-a8bc-be78941788b4": {
                  "icon": "https://cdn.jsdelivr.net/npm/lucide-static@1.59.0/icons/newspaper.svg",
                  "name": "Web",
                  "build": {
                    "builder": "DOCKERFILE"
                  },
                  "deploy": {
                    "startCommand": "/app/railway/entrypoint.sh web",
                    "healthcheckPath": "/terms",
                    "restartPolicyType": "ALWAYS",
                    "healthcheckTimeout": 300
                  },
                  "source": {
                    "repo": "baranberkay96/aihot-railway",
                    "branch": "main",
                    "rootDirectory": "/services/aihot"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "Port of the web server (dual-stack ::); Railway's healthcheck uses it at /terms, a page that renders without the API.",
                      "defaultValue": "3000"
                    },
                    "SITE_URL": {
                      "isOptional": true,
                      "description": "Address readers use. Links, RSS, sitemap, share images and MCP host checks use it; set https://{your-domain} after adding a custom domain (Backend follows).",
                      "defaultValue": "https://${{Gateway.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "TRUST_PROXY": {
                      "isOptional": true,
                      "description": "Read the visitor address from X-Forwarded-For (set by the Gateway) so sign-in and feedback limits count real visitors. Keep true: Web has no public domain.",
                      "defaultValue": "true"
                    },
                    "API_BASE_URL": {
                      "isOptional": true,
                      "description": "Backend API over the private network: page data (SSR) and every API-owned path (/api/*, RSS, sitemap, images, MCP) is proxied there.",
                      "defaultValue": "http://${{Backend.RAILWAY_PRIVATE_DOMAIN}}:${{Backend.PORT}}"
                    },
                    "AIHOT_SOURCE_REPO": {
                      "isOptional": true,
                      "description": "Build source, from Backend (both services must run the same code).",
                      "defaultValue": "${{Backend.AIHOT_SOURCE_REPO}}"
                    },
                    "AIHOT_SOURCE_COMMIT": {
                      "isOptional": true,
                      "description": "Build source commit, from Backend.",
                      "defaultValue": "${{Backend.AIHOT_SOURCE_COMMIT}}"
                    },
                    "AIHOT_SOURCE_SHA256": {
                      "isOptional": true,
                      "description": "Build source checksum, from Backend.",
                      "defaultValue": "${{Backend.AIHOT_SOURCE_SHA256}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {}
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Gateway",
      "method": "GET",
      "path": "/gateway-health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-11-11T04:15:11.344Z",
  "generator_version": "0.1.0"
}
