[IMP]Nginx images : add external ports
For easier redirections
This commit is contained in:
parent
78bceb7d60
commit
ad0a8587b7
@ -5,6 +5,8 @@ MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
|||||||
ENV NGINX_HOST localhost 127.0.0.1
|
ENV NGINX_HOST localhost 127.0.0.1
|
||||||
ENV NGINX_PORT 8080
|
ENV NGINX_PORT 8080
|
||||||
ENV NGINX_SSL_PORT 8443
|
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_PATH /etc/nginx/certs/req.pem
|
||||||
ENV CERTIFICATE_KEY_PATH /etc/nginx/certs/cert.key
|
ENV CERTIFICATE_KEY_PATH /etc/nginx/certs/cert.key
|
||||||
ENV SSL_PROTOCOLS TLSv1.2 TLSv1.3
|
ENV SSL_PROTOCOLS TLSv1.2 TLSv1.3
|
||||||
|
@ -9,7 +9,7 @@ upstream ${SERVICE}longpoll {
|
|||||||
server {
|
server {
|
||||||
listen ${NGINX_PORT};
|
listen ${NGINX_PORT};
|
||||||
server_name ${SERVER_NAMES};
|
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 {
|
server {
|
||||||
|
Loading…
Reference in New Issue
Block a user