Insert comment before location block

This commit is contained in:
Manuel Thalmann 2024-12-04 16:54:54 +01:00
parent c9e1ecac9d
commit b361dd4933

View file

@ -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;' \