Allow to change backend port for the client.
This commit is contained in:
parent
782f069031
commit
d1eb811bd8
3 changed files with 4 additions and 1 deletions
|
@ -3,6 +3,8 @@
|
||||||
# Integrate environment variables
|
# Integrate environment variables
|
||||||
sed -i "s|__BACKEND__|${BACKEND_HOST}|" \
|
sed -i "s|__BACKEND__|${BACKEND_HOST}|" \
|
||||||
/etc/nginx/nginx.conf
|
/etc/nginx/nginx.conf
|
||||||
|
sed -i "s|__BACKEND_PORT__|${BACKEND_PORT}|" \
|
||||||
|
/etc/nginx/nginx.conf
|
||||||
sed -i "s|__BASEURL__|${BASE_URL:-/}|g" \
|
sed -i "s|__BASEURL__|${BASE_URL:-/}|g" \
|
||||||
/var/www/index.htm \
|
/var/www/index.htm \
|
||||||
/var/www/manifest.json
|
/var/www/manifest.json
|
||||||
|
|
|
@ -20,7 +20,7 @@ http {
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
|
|
||||||
upstream backend {
|
upstream backend {
|
||||||
server __BACKEND__:6666;
|
server __BACKEND__:__BACKEND_PORT__;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
|
|
|
@ -32,6 +32,7 @@ services:
|
||||||
- server
|
- server
|
||||||
environment:
|
environment:
|
||||||
BACKEND_HOST: server
|
BACKEND_HOST: server
|
||||||
|
BACKEND_PORT: 6666
|
||||||
BASE_URL:
|
BASE_URL:
|
||||||
volumes:
|
volumes:
|
||||||
- "${MOUNT_DATA}:/data:ro"
|
- "${MOUNT_DATA}:/data:ro"
|
||||||
|
|
Loading…
Reference in a new issue