From 331802966592c91619d9c1282d2659e1d6fc367d Mon Sep 17 00:00:00 2001 From: liberodark Date: Mon, 13 Jan 2020 15:16:35 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/nginx.conf b/conf/nginx.conf index 74de3aa..9fc1869 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -2,6 +2,11 @@ root __FINALPATH__/; index index.php; try_files $uri $uri/ /index.php?$args; +# Force usage of https + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } + location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;