1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/my_webapp_ynh.git synced 2024-09-03 19:46:26 +02:00

Force https

Every time this app is installed, the nginx file needs to edited to force the https. This should be there by default in the nginx config file.
This commit is contained in:
anmol26s 2017-10-26 02:25:46 +05:30 committed by GitHub
parent 5f1bee30dd
commit 3eaaaf665f

View file

@ -1,5 +1,9 @@
location __PATH__ { location __PATH__ {
alias __FINALPATH__/www/; alias __FINALPATH__/www/;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
# Default indexes and catch-all # Default indexes and catch-all
index index.html index.php; index index.html index.php;