1
0
Fork 0
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:
frju365 2017-07-23 13:42:48 +02:00 committed by GitHub
parent 29fb7a2d9e
commit e788166cc1

View file

@ -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;