functional deployment without SSO for trade-hub

This commit is contained in:
2026-11-13 14:37:47 -07:00
parent 2b72f23ea9
commit f17cf9604e
8 changed files with 71 additions and 11 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -29,7 +29,7 @@ services:
build: ./frontend
image: localhost/sc-inventory-frontend:latest
ports:
- "8080:80"
- "8071:8071"
depends_on:
- backend
restart: unless-stopped