From 3eaaaf665f26d1bd6cf8ca96eed03296cc5b0953 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Thu, 26 Oct 2017 02:25:46 +0530 Subject: [PATCH 1/2] 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. --- conf/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index d24f0d7..56d0aca 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,5 +1,9 @@ location __PATH__ { alias __FINALPATH__/www/; + + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } # Default indexes and catch-all index index.html index.php; From 696cdd7ddc55a271718f1b6b618bf48d22a20295 Mon Sep 17 00:00:00 2001 From: anmol26s Date: Sat, 4 Nov 2017 00:35:45 +0530 Subject: [PATCH 2/2] Corrected indentation Thanks --- conf/nginx.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 56d0aca..2d343ab 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,9 +1,9 @@ location __PATH__ { alias __FINALPATH__/www/; - if ($scheme = http) { - rewrite ^ https://$server_name$request_uri? permanent; - } + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } # Default indexes and catch-all index index.html index.php;