From b956e9b389124a5daa2281d8a74ab4c474354c4a Mon Sep 17 00:00:00 2001 From: Josue-T Date: Fri, 12 Jan 2018 22:23:14 +0100 Subject: [PATCH] Force https Actually we can access to friendica without encryption. So force the connexion to be always encrypted. --- conf/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index d0361fa..defb298 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -31,6 +31,10 @@ location __PATH__ { alias __FINALPATH__/; +if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; +} + rewrite ^ https://$server_name$request_uri? permanent; #allow uploads up to 20MB in size