Insert comment before location block

This commit is contained in:
Manuel Thalmann 2024-12-04 16:54:54 +01:00
parent e0f4c7e74a
commit 9dc93b1b8e

View file

@ -93,10 +93,10 @@ begin
end end
printf "%s\n" \ printf "%s\n" \
"location $location {" \
(if [ -n "$_flag_comment" ] (if [ -n "$_flag_comment" ]
echo "# $_flag_comment" echo "# $_flag_comment"
end) \ end) \
"location $location {" \
"proxy_pass $url;" \ "proxy_pass $url;" \
'proxy_set_header Host $host;' \ 'proxy_set_header Host $host;' \
'proxy_set_header X-Real-IP $remote_addr;' \ 'proxy_set_header X-Real-IP $remote_addr;' \