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;