From 28a3ae828ab8165129acf795279ae3b6cea03d17 Mon Sep 17 00:00:00 2001 From: liberodark Date: Mon, 29 Jul 2019 21:22:59 +0200 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 ee035a8..91f4854 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,3 +1,8 @@ +# Force usage of https + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; +} + root /var/www/bookstack/public; index index.php index.html;