From fde03cdc57eb1c68d883c3fb2ee0dbd9fb8e5b5f Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 30 Jan 2021 12:45:18 +0100 Subject: [PATCH] Fix --- conf/nginx.conf | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index faab01b..a1415db 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -11,14 +11,16 @@ location __PATH__/ { rewrite ^ https://$server_name$request_uri? permanent; } - location ~ ^__PATH__/http-bind/ { - proxy_pass http://__DOMAIN__; - } - - location ~ .(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$ { - add_header Access-Control-Allow-Origin "*"; # Decide here whether you want to allow all or only a particular domain - root __FINALPATH__/; # Properly set the path here - } + location __PATH__/http-bind { + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } + proxy_pass http://127.0.0.1:5290/http-bind; + proxy_set_header Host $host; + proxy_buffering off; + tcp_nodelay on; + access_log off; + } # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc;