mirror of
https://github.com/YunoHost-Apps/flarum_ynh.git
synced 2024-09-03 18:36:24 +02:00
[enh] Add https redirection (#50)
This commit is contained in:
parent
29fb7a2d9e
commit
e788166cc1
1 changed files with 5 additions and 0 deletions
|
@ -1,4 +1,9 @@
|
||||||
location ^~ YNH_WWW_PATH {
|
location ^~ YNH_WWW_PATH {
|
||||||
|
|
||||||
|
if ($scheme = http) {
|
||||||
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
|
}
|
||||||
|
|
||||||
alias YNH_WWW_FINALPATH/;
|
alias YNH_WWW_FINALPATH/;
|
||||||
try_files $uri $uri/ /index.php?$query_string;
|
try_files $uri $uri/ /index.php?$query_string;
|
||||||
index YNH_WWW_ROOTPATH/index.php;
|
index YNH_WWW_ROOTPATH/index.php;
|
||||||
|
|
Loading…
Reference in a new issue