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

Redirect to https by default

This commit is contained in:
Jean-Baptiste Holcroft 2018-06-23 22:30:47 +02:00
parent 2908ffcfe1
commit ebb38edc3f

View file

@ -1,5 +1,10 @@
location / {
alias __FINALPATH__/front/dist/;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
try_files $uri $uri/ @rewrites;
}