Okay, you need to use proxy_pass for every location inside a proxied app.
This commit is contained in:
parent
6b7d0485b4
commit
bf3cb9f9bf
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user