{
  "manifest_version": "1.0.0",
  "template": {
    "id": "aa64cb70-8778-45cd-b9c2-ffe4f84b4062",
    "slug": "new-api-or-just-updated-llm-gateway-nobo",
    "name": "New API | (Just Updated) LLM Gateway Nobody Else Can Claim",
    "description": "Multi-provider LLM gateway; admin seeded at boot, sessions survive redeploy",
    "url": "https://railway.com/deploy/new-api-or-just-updated-llm-gateway-nobo",
    "upstream": {
      "image": "ghcr.io/bon5co/new-api-railway:v1.0.0-rc.25"
    }
  },
  "services": [
    {
      "name": "redis",
      "source": {
        "image": "redis:8.2.1-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "postgres",
      "source": {
        "image": "postgres:17.10-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql",
      "http": false
    },
    {
      "name": "new-api",
      "source": {
        "image": "ghcr.io/bon5co/new-api-railway:v1.0.0-rc.25"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "REDIS_PASSWORD",
      "service": "redis",
      "description": "Provide a value for REDIS_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SQL_DSN",
      "service": "new-api",
      "description": "Provide a value for SQL_DSN.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "CRYPTO_SECRET",
      "service": "new-api",
      "description": "Provide a value for CRYPTO_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SESSION_SECRET",
      "service": "new-api",
      "description": "Provide a value for SESSION_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "REDIS_CONN_STRING",
      "service": "new-api",
      "description": "Provide a value for REDIS_CONN_STRING.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NEW_API_ADMIN_PASSWORD",
      "service": "new-api",
      "description": "Provide a value for NEW_API_ADMIN_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "new-api-or-just-updated-llm-gateway-nobo"
      }
    },
    "cli": "railway deploy --template new-api-or-just-updated-llm-gateway-nobo",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "aa64cb70-8778-45cd-b9c2-ffe4f84b4062",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "103ede5d-fdf2-4e14-9a19-373fcd6d5ef7": {
                  "icon": null,
                  "name": "redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'chown -R redis:redis /data && exec docker-entrypoint.sh redis-server --requirepass \"$REDIS_PASSWORD\" --appendonly yes --dir /data'",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2.1-alpine"
                  },
                  "variables": {
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "103ede5d-fdf2-4e14-9a19-373fcd6d5ef7": {
                      "mountPath": "/data"
                    }
                  }
                },
                "40fba9e0-eb1c-445b-b351-7905cfe63405": {
                  "icon": null,
                  "name": "postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17.10-alpine"
                  },
                  "variables": {
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "40fba9e0-eb1c-445b-b351-7905cfe63405": {
                      "mountPath": "/var/lib/postgresql"
                    }
                  }
                },
                "de575205-f78a-408a-8991-649bc539f1dd": {
                  "icon": null,
                  "name": "new-api",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/status",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/new-api-railway:v1.0.0-rc.25"
                  },
                  "variables": {
                    "SQL_DSN": {
                      "isOptional": false,
                      "defaultValue": "postgres://postgres:${{postgres.POSTGRES_PASSWORD}}@${{postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/postgres?sslmode=disable"
                    },
                    "CRYPTO_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{CRYPTO_SECRET}}"
                    },
                    "SESSION_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{SESSION_SECRET}}"
                    },
                    "REDIS_CONN_STRING": {
                      "isOptional": false,
                      "defaultValue": "redis://default:${{redis.REDIS_PASSWORD}}@${{redis.RAILWAY_PRIVATE_DOMAIN}}:6379"
                    },
                    "NEW_API_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "defaultValue": "{{NEW_API_ADMIN_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "de575205-f78a-408a-8991-649bc539f1dd": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "new-api",
      "method": "GET",
      "path": "/api/status",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-08T11:54:27.954Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-04T07:07:54.241Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_fd8bdea9f8b54e8fa608",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED,SUCCESS,SUCCESS"
      }
    ]
  }
}
