1
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

View File

@ -31,26 +31,49 @@ server {
location /guestbook/admin { 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; allow 192.168.144.0/25;
deny all; deny all;
} }
location /mindflow/admin { 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; allow 192.168.144.0/25;
deny all; deny all;
} }
location /api/captcha/ { location /api/captcha/ {
proxy_pass http://unix:/var/run/dwelling-home/sock;
proxy_buffering off;
limit_req zone=captcha_api nodelay; limit_req zone=captcha_api nodelay;
} }
location ~ /api/guestbook/.+ { location ~ /api/guestbook/.+ {
proxy_pass http://unix:/var/run/dwelling-home/sock;
proxy_buffering off;
allow 192.168.144.0/25; allow 192.168.144.0/25;
deny all; deny all;
} }
location ~ /api/mindflow?.+ { location ~ /api/mindflow?.+ {
proxy_pass http://unix:/var/run/dwelling-home/sock;
proxy_buffering off;
allow 192.168.144.0/25; allow 192.168.144.0/25;
deny all; deny all;
} }