From ade4e0e3b649de47bc06c77afa3efaa5c762c8a4 Mon Sep 17 00:00:00 2001 From: yuriy0803 <68668177+yuriy0803@users.noreply.github.com> Date: Sun, 25 Feb 2024 18:45:23 +0100 Subject: [PATCH] Update install.sh --- install.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 4cd5962..2dccc16 100644 --- a/install.sh +++ b/install.sh @@ -138,11 +138,15 @@ server { server_name _; location / { - try_files \$uri \$uri/ =404; + try_files $uri $uri/ =404; } location /api { - proxy_pass http://127.0.0.1:8080; + proxy_pass http://api; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; } } EOF