Fix nginx config create at line http and https redirect.

This commit is contained in:
2021-09-16 18:29:52 +00:00
parent cad44291ce
commit 1cd59dcbe7
2 changed files with 3 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
FROM scheduler:latest
FROM proxy-scheduler:latest
COPY scripts /scripts

View File

@@ -44,10 +44,10 @@ rewrite_log on;"
echo
if [[ $REDIRECT_HTTP != "" && $HTTP_PORT != "" ]]; then
echo "return 301 http://$REDIRECT_HTTP;"
echo "return 301 $REDIRECT_HTTP;"
elif [[ $REDIRECT_HTTPS != "" && $HTTP_PORT != "" ]]; then
echo "return 301 https://$REDIRECT_HTTPS;"
echo "return 301 $REDIRECT_HTTPS;"
else
if [[ $ERROR_PAGE != "" && $HTTP_PORT != "" ]]; then