From 67dfb8f7cf454900a206413b5e345c21ef59d080 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Fri, 14 May 2021 16:59:40 +0200 Subject: [PATCH] Fix Nginx config --- nginx.conf.tmpl | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/nginx.conf.tmpl b/nginx.conf.tmpl index 19fa55b..51542c8 100644 --- a/nginx.conf.tmpl +++ b/nginx.conf.tmpl @@ -10,16 +10,19 @@ http { server {{ env "STACK_NAME" }}_front:8080; } - server_name {{ env "DOMAIN" }}; + server { + listen 80; + server_name {{ env "DOMAIN" }}; - location / { - uwsgi_pass webuwsgi; - include uwsgi_params; - uwsgi_read_timeout 300; - } + location / { + uwsgi_pass webuwsgi; + include uwsgi_params; + uwsgi_read_timeout 300; + } - location /static/ { - alias /opt/mailman/web/static/; - autoindex off; + location /static/ { + alias /opt/mailman/web/static/; + autoindex off; + } } }