Insert comment before location block
This commit is contained in:
parent
e0f4c7e74a
commit
9dc93b1b8e
1 changed files with 3 additions and 3 deletions
|
@ -93,10 +93,10 @@ begin
|
||||||
end
|
end
|
||||||
|
|
||||||
printf "%s\n" \
|
printf "%s\n" \
|
||||||
|
(if [ -n "$_flag_comment" ]
|
||||||
|
echo "# $_flag_comment"
|
||||||
|
end) \
|
||||||
"location $location {" \
|
"location $location {" \
|
||||||
(if [ -n "$_flag_comment" ]
|
|
||||||
echo "# $_flag_comment"
|
|
||||||
end) \
|
|
||||||
"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;' \
|
||||||
|
|
Loading…
Reference in a new issue