From e04093fceba28663291f68961cd28d1dc3600836 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Thu, 12 Sep 2019 08:36:56 +0200 Subject: [PATCH] force ssl on nginx level --- build/proxy/nginx.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/proxy/nginx.conf b/build/proxy/nginx.conf index 0e658c5..995e652 100644 --- a/build/proxy/nginx.conf +++ b/build/proxy/nginx.conf @@ -12,6 +12,9 @@ http { } server { + if ($scheme = http) { + return 301 https://$server_name$request_uri; + } listen 80; autoindex on; root /www/data;