{
  "manifest_version": "1.0.0",
  "template": {
    "id": "fd56a8bf-9d5c-45d0-b87e-8dc5a58d34d2",
    "slug": "deploy-aihot-ai-news-digest",
    "name": "AIHOT",
    "description": "Self-run AI news site that finds hot topics and writes a daily digest",
    "url": "https://railway.com/deploy/deploy-aihot-ai-news-digest",
    "upstream": {
      "image": "ghcr.io/onepush-dev/aihot:edfa18f"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "aihot",
      "source": {
        "image": "ghcr.io/onepush-dev/aihot:edfa18f"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Postgres data directory inside the volume.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Private hostname of the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Postgres password (same as POSTGRES_PASSWORD).",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string for the postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated Postgres superuser password.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "DATABASE_PUBLIC_URL",
      "service": "Postgres",
      "description": "Public TCP-proxy connection string, for external tools.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SITE_URL",
      "service": "aihot",
      "description": "Public site URL used for links, RSS, share images and MCP. Defaults to the Railway domain.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DATABASE_URL",
      "service": "aihot",
      "description": "Postgres connection string, referenced from the Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "aihot",
      "description": "Password for the /admin dashboard. Auto-generated; copy it from Variables.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SESSION_SECRET",
      "service": "aihot",
      "description": "Signs admin session cookies. Auto-generated secret.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "IMG_PROXY_SIGN_SECRET",
      "service": "aihot",
      "description": "Signs image-proxy URLs. Auto-generated secret.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "deploy-aihot-ai-news-digest"
      }
    },
    "cli": "railway deploy --template deploy-aihot-ai-news-digest",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "fd56a8bf-9d5c-45d0-b87e-8dc5a58d34d2",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "4b1759f1-b25a-49ef-8f03-68f688ad39c5": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Postgres data directory inside the volume.",
                      "defaultValue": "${{RAILWAY_VOLUME_MOUNT_PATH}}/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Private hostname of the Postgres service.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Postgres password (same as POSTGRES_PASSWORD).",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string for the postgres database.",
                      "defaultValue": "postgresql://postgres:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/postgres"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated Postgres superuser password.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "DATABASE_PUBLIC_URL": {
                      "isOptional": false,
                      "description": "Public TCP-proxy connection string, for external tools.",
                      "defaultValue": "postgresql://postgres:${{POSTGRES_PASSWORD}}@${{RAILWAY_TCP_PROXY_DOMAIN}}:${{RAILWAY_TCP_PROXY_PORT}}/postgres"
                    }
                  },
                  "volumeMounts": {
                    "4b1759f1-b25a-49ef-8f03-68f688ad39c5": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "ca44d359-554a-4a2e-81da-3849ce26e9d8": {
                  "icon": null,
                  "name": "aihot",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/onepush-dev/aihot:edfa18f"
                  },
                  "variables": {
                    "SITE_URL": {
                      "isOptional": false,
                      "description": "Public site URL used for links, RSS, share images and MCP. Defaults to the Railway domain.",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string, referenced from the Postgres service.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password for the /admin dashboard. Auto-generated; copy it from Variables.",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "SESSION_SECRET": {
                      "isOptional": false,
                      "description": "Signs admin session cookies. Auto-generated secret.",
                      "defaultValue": "{{SESSION_SECRET}}"
                    },
                    "IMG_PROXY_SIGN_SECRET": {
                      "isOptional": false,
                      "description": "Signs image-proxy URLs. Auto-generated secret.",
                      "defaultValue": "{{IMG_PROXY_SIGN_SECRET}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "ca44d359-554a-4a2e-81da-3849ce26e9d8": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-11-01T16:15:09.105Z",
  "generator_version": "0.1.0"
}
