From dadc85ec8abb44e867931c9522f7db739c8cf9cf Mon Sep 17 00:00:00 2001
From: Sergey Karatkevich <simarg@gmail.com>
Date: Wed, 13 Nov 2019 14:46:51 +0100
Subject: [PATCH] Update nginx.conf.j2 based on
 https://governance.funkwhale.audio/d/0P4YcUp6/comment/1008

---
 templates/nginx.conf.j2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2
index 0e17a17..e0deeb7 100644
--- a/templates/nginx.conf.j2
+++ b/templates/nginx.conf.j2
@@ -15,8 +15,8 @@ map $http_upgrade $connection_upgrade {
 }
 
 server {
-    listen {% if funkwhale_protocol == 'https' %}443 ssl{% else %}80{% endif %} http2;
-    listen [::]:{% if funkwhale_protocol == 'https' %}443 ssl{% else -%}80{% endif %} http2;
+    listen {% if funkwhale_protocol == 'https' %}443 ssl http2{% else %}80{% endif %};
+    listen [::]:{% if funkwhale_protocol == 'https' %}443 ssl http2{% else -%}80{% endif %};
     server_name {{ funkwhale_hostname }};
     {% if funkwhale_protocol == 'https' -%}
     {% if funkwhale_ssl_key_path -%}
-- 
GitLab