改变nginx容器名称为prnginx,精简代理头设置。

This commit is contained in:
张建平 2025-02-26 18:12:35 +08:00
parent a10a565f64
commit c05e8fe2e2
2 changed files with 1 additions and 3 deletions

View File

@ -1,7 +1,7 @@
services:
nginx:
image: nginx:latest
container_name: nginx
container_name: prnginx
ports:
- "10008:80"
volumes:

View File

@ -15,8 +15,6 @@ server {
proxy_set_header Access-Control-Allow-Origin *;
proxy_set_header Access-Control-Allow-Methods *;
proxy_set_header Access-Control-Allow-Headers *;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_pass http://backend:18000;
}
}