Amend API URL
This commit is contained in:
@@ -1,15 +1,13 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
: "${API_HOST:=http://localhost}"
|
||||
: "${API_PORT:=80}"
|
||||
# Create runtime config file in writable location
|
||||
cat > /runtime-config/config.js <<EOF
|
||||
window.__APP_CONFIG__ = {
|
||||
API_HOST: "${API_HOST}",
|
||||
API_PORT: "${API_PORT}"
|
||||
};
|
||||
EOF
|
||||
#cat > /runtime-config/config.js <<EOF
|
||||
#window.__APP_CONFIG__ = {
|
||||
# API_HOST: "${API_HOST}",
|
||||
# API_PORT: "${API_PORT}"
|
||||
#};
|
||||
#EOF
|
||||
|
||||
# Generate nginx config from template (if using)
|
||||
if [ -f "/etc/nginx/templates/nginx.conf.template" ]; then
|
||||
|
||||
Reference in New Issue
Block a user