From acd5903fd1626f932a55aa460003a48688a947f8 Mon Sep 17 00:00:00 2001 From: gyurix Date: Fri, 30 Sep 2022 12:40:34 +0000 Subject: [PATCH] Fixing http section when variable empty --- scripts/nginx_config_create.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/nginx_config_create.sh b/scripts/nginx_config_create.sh index 4528b5a..60e20d5 100755 --- a/scripts/nginx_config_create.sh +++ b/scripts/nginx_config_create.sh @@ -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;