Update nginx
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ version: '3.8'
|
|||||||
services:
|
services:
|
||||||
booklore-app:
|
booklore-app:
|
||||||
container_name: booklore
|
container_name: booklore
|
||||||
image: localhost:5000/booklore-app:v22
|
image: localhost:5000/booklore-app:v24
|
||||||
ports:
|
ports:
|
||||||
- "5050:6060"
|
- "5050:6060"
|
||||||
volumes:
|
volumes:
|
||||||
|
|||||||
+2
-2
@@ -19,8 +19,8 @@ http {
|
|||||||
try_files $uri $uri/ /index.html; # Fallback to index.html for Angular routing
|
try_files $uri $uri/ /index.html; # Fallback to index.html for Angular routing
|
||||||
}
|
}
|
||||||
|
|
||||||
# Proxy API requests that start with /v1/ to the backend
|
# Proxy API requests that start with /api/ to the backend
|
||||||
location /v1/ {
|
location /api/ {
|
||||||
proxy_pass http://localhost:8080; # Backend API running on port 8080
|
proxy_pass http://localhost:8080; # Backend API running on port 8080
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
|||||||
Reference in New Issue
Block a user