Commit 6db6be40 authored by rg's avatar rg

Modif si pas de ssl

parent 26ccaecf
......@@ -77,6 +77,7 @@ RUN echo 'DOMAIN=$1; shift; USE_CACHE=$1; shift; SSL=$1; shift; SSL_LETSENCRYPTM
echo '[[ "$USE_CACHE" =~ false|^$ ]] && PROXY_NO_CACHE=1 || PROXY_NO_CACHE=0' >>$INIT_NGINX; \
echo '[[ ! "$USE_CACHE" =~ true|false|^$ ]] && CACHE=$USE_CACHE || CACHE="500m"' >>$INIT_NGINX; \
echo 'echo "Cache: $CACHE => $PROXY_NO_CACHE"' >>$INIT_NGINX; \
echo '[ "$SSL" = "false" ] && CONF=${CONF//\\{REDIRECT_PORT\\}/81} || CONF=${CONF//\\{REDIRECT_PORT\\}/80}' >>$INIT_NGINX; \
echo 'CONF=${CONF//\\{LISTEN\\}/$LISTEN}' >>$INIT_NGINX; \
echo 'CONF=${CONF//\\{NGINX_BALANCERLIST\\}/$TEMP}' >>$INIT_NGINX; \
echo 'CONF=${CONF//\\{DOMAIN\\}/$DOMAIN}' >>$INIT_NGINX; \
......
......@@ -47,7 +47,7 @@ server {
}
server {
listen 80;
listen {REDIRECT_PORT};
return 301 https://{DOMAIN}$request_uri;
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment