Skip to content

Commit 4d6b07f

Browse files
Allow runtime configuration of nginx listening port
1 parent 8a9f6e1 commit 4d6b07f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

frontend/Dockerfile.nginx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ ENV OPENVERSE_NGINX_ENVIRONMENT="local"
2727
# Add the release version to the docker container
2828
ARG SEMANTIC_VERSION
2929
ENV OPENVERSE_NGINX_GIT_REVISION=$SEMANTIC_VERSION
30+
ENV OPENVERSE_NGINX_LISTEN_PORT="8080"

frontend/nginx.conf.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ upstream ov_service {
4545
server {
4646
access_log /var/log/nginx/access.log json_combined;
4747

48-
listen 8080;
48+
listen $OPENVERSE_NGINX_LISTEN_PORT;
4949
server_name _;
5050
charset utf-8;
5151
client_max_body_size 75M;

0 commit comments

Comments
 (0)