Spaces:
Running
Running
Upload nginx.conf
Browse files- client/nginx.conf +2 -1
client/nginx.conf
CHANGED
|
@@ -12,7 +12,7 @@ server {
|
|
| 12 |
|
| 13 |
# Proxy API requests to the backend (same container)
|
| 14 |
location /api/ {
|
| 15 |
-
proxy_pass http://
|
| 16 |
proxy_http_version 1.1;
|
| 17 |
proxy_set_header Upgrade $http_upgrade;
|
| 18 |
proxy_set_header Connection 'upgrade';
|
|
@@ -33,6 +33,7 @@ server {
|
|
| 33 |
error_page 404 /404.html;
|
| 34 |
location = /404.html {
|
| 35 |
internal;
|
|
|
|
| 36 |
}
|
| 37 |
|
| 38 |
error_page 500 502 503 504 /50x.html;
|
|
|
|
| 12 |
|
| 13 |
# Proxy API requests to the backend (same container)
|
| 14 |
location /api/ {
|
| 15 |
+
proxy_pass http://127.0.0.1:3001/;
|
| 16 |
proxy_http_version 1.1;
|
| 17 |
proxy_set_header Upgrade $http_upgrade;
|
| 18 |
proxy_set_header Connection 'upgrade';
|
|
|
|
| 33 |
error_page 404 /404.html;
|
| 34 |
location = /404.html {
|
| 35 |
internal;
|
| 36 |
+
root /usr/share/nginx/html;
|
| 37 |
}
|
| 38 |
|
| 39 |
error_page 500 502 503 504 /50x.html;
|