From 9dc93b1b8e6275aeacfe624846739f286937e481 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 4 Dec 2024 16:54:54 +0100 Subject: [PATCH] Insert comment before location block --- scripts/Common/Software/docker/services/service.fish | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/Common/Software/docker/services/service.fish b/scripts/Common/Software/docker/services/service.fish index 3cc3b34d..78b71d2f 100644 --- a/scripts/Common/Software/docker/services/service.fish +++ b/scripts/Common/Software/docker/services/service.fish @@ -93,10 +93,10 @@ begin end printf "%s\n" \ + (if [ -n "$_flag_comment" ] + echo "# $_flag_comment" + end) \ "location $location {" \ - (if [ -n "$_flag_comment" ] - echo "# $_flag_comment" - end) \ "proxy_pass $url;" \ 'proxy_set_header Host $host;' \ 'proxy_set_header X-Real-IP $remote_addr;' \