Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to change backend port for the client. #584

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions client/docker-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Integrate environment variables
sed -i "s|__BACKEND__|${BACKEND_HOST}|" \
/etc/nginx/nginx.conf
sed -i "s|__BACKEND_PORT__|${BACKEND_PORT}|" \
/etc/nginx/nginx.conf
sed -i "s|__BASEURL__|${BASE_URL:-/}|g" \
/var/www/index.htm \
/var/www/manifest.json
Expand Down
2 changes: 1 addition & 1 deletion client/nginx.conf.docker
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ http {
keepalive_timeout 65;

upstream backend {
server __BACKEND__:6666;
server __BACKEND__:__BACKEND_PORT__;
}

server {
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ services:
- server
environment:
BACKEND_HOST: server
BACKEND_PORT: 6666
BASE_URL:
volumes:
- "${MOUNT_DATA}:/data:ro"
Expand Down