Fixing http section when variable empty

This commit is contained in:
2022-09-30 12:40:34 +00:00
parent 1902534bf0
commit acd5903fd1

View File

@@ -48,7 +48,7 @@ return 301 https://$DOMAIN_NAME;
fi
if [[ "$HTTP_PORT" != "" || "$HTTP_PORT" != "80" ]]; then
if [[ "$HTTP_PORT" != "" && "$HTTP_PORT" != "80" ]]; then
echo "server {
listen $HTTP_PORT proxy_protocol;
set_real_ip_from 0.0.0.0/0;