From bf3cb9f9bfc26ed7241d714794da151cc635af26 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 23 May 2023 23:30:06 +0400 Subject: [PATCH] Okay, you need to use proxy_pass for every location inside a proxied app. --- configs/nginx.conf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/configs/nginx.conf b/configs/nginx.conf index 77ee366..53dd48c 100644 --- a/configs/nginx.conf +++ b/configs/nginx.conf @@ -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; }