functional deployment without SSO for trade-hub
This commit is contained in:
@@ -3,4 +3,4 @@ FROM docker.io/library/nginx:1.27-alpine
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY src/ /usr/share/nginx/html/
|
||||
|
||||
EXPOSE 80
|
||||
EXPOSE 8071
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen 8071;
|
||||
server_name _;
|
||||
|
||||
gzip on;
|
||||
@@ -14,7 +14,7 @@ server {
|
||||
location /api/ {
|
||||
proxy_pass http://backend:8000;
|
||||
# $http_host keeps the client's port, which the backend's Origin check
|
||||
# compares against; $host would drop ":8080" and reject real browsers.
|
||||
# compares against; $host would drop the port and reject real browsers.
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
@@ -29,7 +29,7 @@ services:
|
||||
build: ./frontend
|
||||
image: localhost/sc-inventory-frontend:latest
|
||||
ports:
|
||||
- "8080:80"
|
||||
- "8071:8071"
|
||||
depends_on:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in New Issue
Block a user