Spaces:
Build error
Build error
Update nginx.conf
Browse files- nginx.conf +0 -38
nginx.conf
CHANGED
|
@@ -2,7 +2,6 @@ server {
|
|
| 2 |
listen 7860;
|
| 3 |
server_name _;
|
| 4 |
|
| 5 |
-
# ββ Frontend (Next.js) ββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 6 |
location / {
|
| 7 |
proxy_pass http://127.0.0.1:3000;
|
| 8 |
proxy_http_version 1.1;
|
|
@@ -16,43 +15,6 @@ server {
|
|
| 16 |
proxy_send_timeout 86400;
|
| 17 |
}
|
| 18 |
|
| 19 |
-
# ββ Backend API βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 20 |
-
location /api/ {
|
| 21 |
-
proxy_pass http://127.0.0.1:3001/;
|
| 22 |
-
proxy_http_version 1.1;
|
| 23 |
-
proxy_set_header Host $host;
|
| 24 |
-
proxy_set_header X-Real-IP $remote_addr;
|
| 25 |
-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
| 26 |
-
proxy_set_header X-Forwarded-Proto $scheme;
|
| 27 |
-
proxy_set_header Upgrade $http_upgrade;
|
| 28 |
-
proxy_set_header Connection "upgrade";
|
| 29 |
-
proxy_read_timeout 86400;
|
| 30 |
-
proxy_send_timeout 86400;
|
| 31 |
-
}
|
| 32 |
-
|
| 33 |
-
# ββ WebSocket βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 34 |
-
location /ws {
|
| 35 |
-
proxy_pass http://127.0.0.1:3001;
|
| 36 |
-
proxy_http_version 1.1;
|
| 37 |
-
proxy_set_header Upgrade $http_upgrade;
|
| 38 |
-
proxy_set_header Connection "upgrade";
|
| 39 |
-
proxy_set_header Host $host;
|
| 40 |
-
proxy_set_header X-Real-IP $remote_addr;
|
| 41 |
-
proxy_read_timeout 86400;
|
| 42 |
-
proxy_send_timeout 86400;
|
| 43 |
-
}
|
| 44 |
-
|
| 45 |
-
# ββ WebSocket alternate path ββββββββββββββββββββββββββββββββββββββββββββ
|
| 46 |
-
location /socket.io/ {
|
| 47 |
-
proxy_pass http://127.0.0.1:3001;
|
| 48 |
-
proxy_http_version 1.1;
|
| 49 |
-
proxy_set_header Upgrade $http_upgrade;
|
| 50 |
-
proxy_set_header Connection "upgrade";
|
| 51 |
-
proxy_set_header Host $host;
|
| 52 |
-
proxy_read_timeout 86400;
|
| 53 |
-
proxy_send_timeout 86400;
|
| 54 |
-
}
|
| 55 |
-
|
| 56 |
gzip on;
|
| 57 |
gzip_types text/plain application/json application/javascript text/css;
|
| 58 |
gzip_min_length 1000;
|
|
|
|
| 2 |
listen 7860;
|
| 3 |
server_name _;
|
| 4 |
|
|
|
|
| 5 |
location / {
|
| 6 |
proxy_pass http://127.0.0.1:3000;
|
| 7 |
proxy_http_version 1.1;
|
|
|
|
| 15 |
proxy_send_timeout 86400;
|
| 16 |
}
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
gzip on;
|
| 19 |
gzip_types text/plain application/json application/javascript text/css;
|
| 20 |
gzip_min_length 1000;
|