Modified webpage/nginx.conf

This commit is contained in:
Penguin-71630
2025-12-13 05:21:30 +08:00
parent f3108b3c80
commit f0659b014d
2 changed files with 2 additions and 10 deletions

View File

@@ -1,5 +1,5 @@
server {
listen 48763;
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
@@ -8,14 +8,6 @@ server {
try_files $uri $uri/ /index.html;
}
location /api {
proxy_pass http://backend:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
gzip on;
gzip_vary on;

View File

@@ -9,7 +9,7 @@ server {
}
location /api {
proxy_pass http://backend:8080;
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';