Commit 947cac54 authored by junmeng huang's avatar junmeng huang
Browse files

fix: 简化nginx代理配置,使用host.docker.internal

主要修改:
1. nginx-site.local.conf - 使用 host.docker.internal:8080
2. .gitlab-ci.yml - 简化部署脚本,使用 --add-host 参数

问题原因:
- 之前使用容器名代理,但容器不在同一网络
- 路径重写规则导致404错误

解决方案:
- location /api/ + proxy_pass http://host.docker.internal:8080/
- nginx自动去掉 /api 前缀并代理到后端
- 使用 --add-host=host.docker.internal:host-gateway 确保兼容性

路径映射示例:
  /api/v1/auth/login → http://host.docker.internal:8080/v1/auth/login

🤖 Generated with [Claude Code](https://claude.com/claude-code

)

Co-Authored-By: default avatarClaude <noreply@anthropic.com>
parent fb9729a4
Loading
Loading
Loading
Loading