update Dockerfile and nginx config
This commit is contained in:
parent
bdb44da1ea
commit
4f10e0c0fb
@ -41,4 +41,4 @@ COPY --from=builder /app/dist ./
|
||||
# 暴露80端口
|
||||
EXPOSE 80
|
||||
# 启动Nginx服务
|
||||
# CMD ["nginx", "-g", "daemon off;"]
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
@ -1,7 +1,3 @@
|
||||
upstream payment_backend {
|
||||
server $APP_API_URL;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
@ -26,7 +22,7 @@ server {
|
||||
}
|
||||
|
||||
location ^~/api {
|
||||
proxy_pass https://test-payment-be.hkchc.team;
|
||||
proxy_pass https://localhost:50000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
@ -49,7 +45,6 @@ server {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header REMOTE-HOST $remote_addr;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
proxy_http_version 1.1;
|
||||
# proxy_hide_header Upgrade;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user