1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garage_ynh.git synced 2024-09-03 18:36:32 +02:00

Update nginx.conf

This commit is contained in:
Éric Gaspar 2023-04-26 16:17:34 +02:00
parent 6b11ebe338
commit 40f7c66c78

View file

@ -1,5 +1,7 @@
location / {
proxy_pass http://localhost:__PORT_API__;
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
proxy_pass http://127.0.0.1:__PORT_API__;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
}