Skip to content

Commit

Permalink
🔧 Changed ports configuration
Browse files Browse the repository at this point in the history
- The frontend docker can now can take a `BACKEND_PORT` environment
  variable
  • Loading branch information
Lugrim committed Jan 17, 2024
1 parent c7704a5 commit a120fb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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:-6666}|" \
/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

0 comments on commit a120fb3

Please sign in to comment.