From 4d6b07f8a6fca31463d13a6c79e54a93627181e8 Mon Sep 17 00:00:00 2001 From: sarayourfriend <24264157+sarayourfriend@users.noreply.github.com> Date: Wed, 18 Oct 2023 13:15:13 +1100 Subject: [PATCH] Allow runtime configuration of nginx listening port --- frontend/Dockerfile.nginx | 1 + frontend/nginx.conf.template | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/Dockerfile.nginx b/frontend/Dockerfile.nginx index d8854202f0a..6e47a8c8f25 100644 --- a/frontend/Dockerfile.nginx +++ b/frontend/Dockerfile.nginx @@ -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" diff --git a/frontend/nginx.conf.template b/frontend/nginx.conf.template index 268104d0056..004092aaf16 100644 --- a/frontend/nginx.conf.template +++ b/frontend/nginx.conf.template @@ -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;