diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index 0e17a1718a57869044c597ba5649258ce1c93f9b..e0deeb70e3f8130cfdbd693523ee5de5f0d45403 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 -%}