fix: host nginx proxies /api to gateway to avoid web DNS 502
Public HTTPS API/AI/gateway go to 127.0.0.1:8180; web only serves static. Restores static gateway upstream inside the web container. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -8,7 +8,8 @@ AI 建站默认用 **Docker web 容器**(`127.0.0.1:5173`)对外提供页面
|
||||
|
||||
| 用途 | 仓库路径 | 生效方式 |
|
||||
|------|----------|----------|
|
||||
| 容器 Web 反代 | `web/nginx.conf.template` | `./reload-config.sh web` |
|
||||
| 容器 Web 反代 | `web/nginx.conf.template`(本机 :5173) | `./reload-config.sh web` |
|
||||
| 公网 API | 宿主机 Nginx `/api/` → `:8180` | `./reload-config.sh` |
|
||||
| Platform | `platform/etc/platform.docker.yaml` | `./reload-config.sh platform` |
|
||||
| Gateway | `gateway/etc/gateway.docker.yaml` | `./reload-config.sh gateway` |
|
||||
| LLM / 视觉 | `.env` | `./reload-config.sh ai` |
|
||||
|
||||
Reference in New Issue
Block a user