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:
parent
2908ffcfe1
commit
ebb38edc3f
1 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,10 @@
|
||||||
location / {
|
location / {
|
||||||
alias __FINALPATH__/front/dist/;
|
alias __FINALPATH__/front/dist/;
|
||||||
|
|
||||||
|
if ($scheme = http) {
|
||||||
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
|
}
|
||||||
|
|
||||||
try_files $uri $uri/ @rewrites;
|
try_files $uri $uri/ @rewrites;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue