Amend port
This commit is contained in:
@@ -25,7 +25,7 @@ services:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile
|
||||
ports:
|
||||
- "7070:7070"
|
||||
- "80:80"
|
||||
depends_on:
|
||||
- be
|
||||
environment:
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
set -e
|
||||
|
||||
: "${API_HOST:=http://localhost}"
|
||||
: "${API_PORT:=7070}"
|
||||
: "${API_PORT:=80}"
|
||||
# Create runtime config file in writable location
|
||||
cat > /runtime-config/config.js <<EOF
|
||||
window.__APP_CONFIG__ = {
|
||||
|
||||
@@ -32,7 +32,7 @@ http {
|
||||
}
|
||||
|
||||
server {
|
||||
listen 7070;
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
@@ -57,7 +57,7 @@ http {
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://backend:8080/;
|
||||
proxy_pass http://backend;
|
||||
|
||||
# Headers for both simple and preflight requests
|
||||
add_header 'Access-Control-Allow-Origin' '$http_origin' always;
|
||||
|
||||
Reference in New Issue
Block a user