[IMP]Nginx images : add external ports

For easier redirections
This commit is contained in:
Fabien BOURGEOIS 2021-03-29 22:26:53 +02:00
parent 78bceb7d60
commit ad0a8587b7
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,8 @@ MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
ENV NGINX_HOST localhost 127.0.0.1
ENV NGINX_PORT 8080
ENV NGINX_SSL_PORT 8443
ENV NGINX_EXTERNAL_PORT 80
ENV NGINX_EXTERNAL_SSL_PORT 443
ENV CERTIFICATE_PATH /etc/nginx/certs/req.pem
ENV CERTIFICATE_KEY_PATH /etc/nginx/certs/cert.key
ENV SSL_PROTOCOLS TLSv1.2 TLSv1.3

View File

@ -9,7 +9,7 @@ upstream ${SERVICE}longpoll {
server {
listen ${NGINX_PORT};
server_name ${SERVER_NAMES};
return 301 https://${DOLLSIGN}host:${NGINX_SSL_PORT}${DOLLSIGN}request_uri;
return 301 https://${DOLLSIGN}host:${NGINX_EXTERNAL_SSL_PORT}${DOLLSIGN}request_uri;
}
server {