Skip to content

Commit

Permalink
Allow runtime configuration of nginx listening port (#3219)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend authored Oct 19, 2023
1 parent ed2a305 commit 93b64b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/Dockerfile.nginx
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ ENV OPENVERSE_NGINX_ENVIRONMENT="local"
# Add the release version to the docker container
ARG SEMANTIC_VERSION
ENV OPENVERSE_NGINX_GIT_REVISION=$SEMANTIC_VERSION
ENV OPENVERSE_NGINX_LISTEN_PORT="8080"
2 changes: 1 addition & 1 deletion frontend/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ upstream ov_service {
server {
access_log /var/log/nginx/access.log json_combined;

listen 8080;
listen $OPENVERSE_NGINX_LISTEN_PORT;
server_name _;
charset utf-8;
client_max_body_size 75M;
Expand Down

0 comments on commit 93b64b5

Please sign in to comment.