From cc9e8378200d70d7e25ea20b26fd2f6c0d6612cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 21 Feb 2023 14:15:44 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index b9240c7..fa2682d 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -6,19 +6,15 @@ location __PATH__/ { index index.html; - more_set_headers "Access-Control-Allow-Origin: *"; - - location = __PATH__/http-bind { - proxy_pass "http://localhost:5290/http-bind"; - proxy_http_version 1.1; - 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; - proxy_buffering off; - tcp_nodelay on; - } - # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; } + +location = __PATH__/http-bind/ { + proxy_pass "http://127.0.0.1:5290/http-bind"; +} + +location ~ .(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$ { + more_set_headers "Access-Control-Allow-Origin: *"; + root __INSTALL_DIR__/; +}