From 13f69fba07a90c49eb43b3544435960679821cb6 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Thu, 6 May 2021 20:21:47 +0200 Subject: [PATCH] Try this rewrite rule --- nginx.conf.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nginx.conf.tmpl b/nginx.conf.tmpl index f391b22..9e4c4fc 100644 --- a/nginx.conf.tmpl +++ b/nginx.conf.tmpl @@ -28,6 +28,10 @@ server { } location / { + if ($scheme = http) { + rewrite ^ https://$server_name$request_uri? permanent; + } + try_files /dev/null @api; }