commit | d82e469221cb348901e4ed6a4dab06a523f575e2 | [log] [tgz] |
---|---|---|
author | yyyang <22301060@bjtu.edu.cn> | Fri Jun 06 13:16:33 2025 +0800 |
committer | 22301060 <22301060@bjtu.edu.cn> | Fri Jun 06 13:19:17 2025 +0800 |
tree | 44c64c6bc1bca70b0bb663b36ce25d6ecee5593f | |
parent | dce2f7b13f8c29bca6f057087407f0c548b9da79 [diff] |
docker分开运行 不再使用compose Change-Id: Id077e52223427532af09989882a6fb5a1a207386
diff --git a/nginx.conf b/nginx.conf index c9be409..78e9b9e 100644 --- a/nginx.conf +++ b/nginx.conf
@@ -14,9 +14,9 @@ try_files $uri $uri/ /index.html; } - # 后端 API 代理 + # 后端 API 代理 - 修改为宿主机地址 location /api/ { - proxy_pass http://backend:8080/api/; + proxy_pass http://host.docker.internal:8080/api/; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade';