location __PATH__/ { try_files $uri $uri/index.html; if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; } proxy_pass http://localhost:__PORT__/; add_header X-Frame-Options SAMEORIGIN; proxy_set_header Host $host; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection upgrade; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc; } ## TODO fix in the code so that we don't need this location ~ ^/(register|login|settings|user|pad|drive|poll|slide|code|whiteboard)$ { rewrite ^(.*)$ $1/ redirect; }