Amend port

This commit is contained in:
2025-07-17 13:12:10 +02:00
parent 9c743ed514
commit e895602aa4
3 changed files with 4 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ services:
context: .. context: ..
dockerfile: docker/Dockerfile dockerfile: docker/Dockerfile
ports: ports:
- "7070:7070" - "80:80"
depends_on: depends_on:
- be - be
environment: environment:

View File

@@ -2,7 +2,7 @@
set -e set -e
: "${API_HOST:=http://localhost}" : "${API_HOST:=http://localhost}"
: "${API_PORT:=7070}" : "${API_PORT:=80}"
# Create runtime config file in writable location # Create runtime config file in writable location
cat > /runtime-config/config.js <<EOF cat > /runtime-config/config.js <<EOF
window.__APP_CONFIG__ = { window.__APP_CONFIG__ = {

View File

@@ -32,7 +32,7 @@ http {
} }
server { server {
listen 7070; listen 80;
server_name localhost; server_name localhost;
root /usr/share/nginx/html; root /usr/share/nginx/html;
index index.html; index index.html;
@@ -57,7 +57,7 @@ http {
} }
location /api/ { location /api/ {
proxy_pass http://backend:8080/; proxy_pass http://backend;
# Headers for both simple and preflight requests # Headers for both simple and preflight requests
add_header 'Access-Control-Allow-Origin' '$http_origin' always; add_header 'Access-Control-Allow-Origin' '$http_origin' always;