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;