From 9fac474e2e00b3d6e9a2654203fc2b3a1a98dc56 Mon Sep 17 00:00:00 2001 From: Alexander Kuhta Date: Thu, 22 Nov 2018 11:36:59 +0300 Subject: [PATCH] Fix redirect to https when it is disabled (#40) --- public/templates/conf/sites-available/example.com.conf.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/templates/conf/sites-available/example.com.conf.html b/public/templates/conf/sites-available/example.com.conf.html index b34fb19..f92d98d 100644 --- a/public/templates/conf/sites-available/example.com.conf.html +++ b/public/templates/conf/sites-available/example.com.conf.html @@ -183,7 +183,7 @@ server { ✔ Let's Encrypt --> ssl_trusted_certificate /etc/letsencrypt/live/{{ domain() }}/fullchain.pem; - return 301 https://{{ isWWW() ? 'www.' : '' }}{{ domain() }}$request_uri; + return 301 http{{ isHTTPS() ? 's' : '' }}://{{ isWWW() ? 'www.' : '' }}{{ domain() }}$request_uri; }