From f0659b014d81189fa823228ec9ea1a0d9a253067 Mon Sep 17 00:00:00 2001 From: Penguin-71630 Date: Sat, 13 Dec 2025 05:21:30 +0800 Subject: [PATCH] Modified webpage/nginx.conf --- nginx.conf | 10 +--------- webpage/nginx.conf | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/nginx.conf b/nginx.conf index 674fe8c..15d335f 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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; diff --git a/webpage/nginx.conf b/webpage/nginx.conf index 674fe8c..4604c3b 100644 --- a/webpage/nginx.conf +++ b/webpage/nginx.conf @@ -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';