1
0
Fork 0

Okay, you need to use proxy_pass for every location inside a proxied app.

This commit is contained in:
Alexander Andreev 2023-05-23 23:30:06 +04:00
parent 6b7d0485b4
commit bf3cb9f9bf
Signed by: Arav
GPG Key ID: D22A817D95815393
1 changed files with 23 additions and 0 deletions

View File

@ -31,26 +31,49 @@ server {
location /guestbook/admin {
proxy_pass http://unix:/var/run/dwelling-home/sock;
proxy_buffering off;
proxy_set_header X-Client-Timezone $gi2_location_tz;
proxy_set_header Host $host;
proxy_set_header Schema $scheme;
allow 192.168.144.0/25;
deny all;
}
location /mindflow/admin {
proxy_pass http://unix:/var/run/dwelling-home/sock;
proxy_buffering off;
proxy_set_header X-Client-Timezone $gi2_location_tz;
proxy_set_header Host $host;
proxy_set_header Schema $scheme;
allow 192.168.144.0/25;
deny all;
}
location /api/captcha/ {
proxy_pass http://unix:/var/run/dwelling-home/sock;
proxy_buffering off;
limit_req zone=captcha_api nodelay;
}
location ~ /api/guestbook/.+ {
proxy_pass http://unix:/var/run/dwelling-home/sock;
proxy_buffering off;
allow 192.168.144.0/25;
deny all;
}
location ~ /api/mindflow?.+ {
proxy_pass http://unix:/var/run/dwelling-home/sock;
proxy_buffering off;
allow 192.168.144.0/25;
deny all;
}