From de2a06aec140a82f147f54d4929932e76ddd7f33 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Wed, 1 Nov 2017 15:24:22 +0100 Subject: [PATCH 1/3] Fix letsencrypt by using a separate port than the proxy --- nginx/conf/nginx.conf | 2 +- nginx/letsencrypt.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/conf/nginx.conf b/nginx/conf/nginx.conf index b684bbec..5be5a77a 100644 --- a/nginx/conf/nginx.conf +++ b/nginx/conf/nginx.conf @@ -42,7 +42,7 @@ http { # In any case, enable the proxy for certbot if the flavor is letsencrypt {% if TLS_FLAVOR == 'letsencrypt' %} location ^~ /.well-known/acme-challenge/ { - proxy_pass http://localhost:8000; + proxy_pass http://localhost:8008; } {% endif %} diff --git a/nginx/letsencrypt.py b/nginx/letsencrypt.py index 18aea292..b6044eca 100755 --- a/nginx/letsencrypt.py +++ b/nginx/letsencrypt.py @@ -12,7 +12,7 @@ command = [ "-m", "{}@{}".format(os.environ["POSTMASTER"], os.environ["DOMAIN"]), "certonly", "--standalone", "--cert-name", "mailu", - "--preferred-challenges", "http", "--http-01-port", "8000", + "--preferred-challenges", "http", "--http-01-port", "8008", "--keep-until-expiring", "--rsa-key-size", "4096", "--config-dir", "/certs/letsencrypt", From 8722e72f8d3dceaee3357f898791f22ad6c0e2db Mon Sep 17 00:00:00 2001 From: kaiyou Date: Wed, 1 Nov 2017 16:28:14 +0100 Subject: [PATCH 2/3] Fix the token list template --- admin/mailu/ui/templates/token/list.html | 40 +++++++++++------------- 1 file changed, 19 insertions(+), 21 deletions(-) diff --git a/admin/mailu/ui/templates/token/list.html b/admin/mailu/ui/templates/token/list.html index b3996da8..ad560e6a 100644 --- a/admin/mailu/ui/templates/token/list.html +++ b/admin/mailu/ui/templates/token/list.html @@ -12,25 +12,23 @@ {% trans %}New token{% endtrans %} {% endblock %} -{% block box %} - - - - - - - - - {% for token in user.tokens %} - - - - - - - {% endfor %} - -
{% trans %}Actions{% endtrans %}{% trans %}Comment{% endtrans %}{% trans %}Authorized IP{% endtrans %}{% trans %}Created{% endtrans %}
- - {{ token.comment }}{{ token.ip or "any" }}{{ token.created_at }}
+{% block content %} +{% call macros.table() %} + + {% trans %}Actions{% endtrans %} + {% trans %}Comment{% endtrans %} + {% trans %}Authorized IP{% endtrans %} + {% trans %}Created{% endtrans %} + +{% for token in user.tokens %} + + + + + {{ token.comment }} + {{ token.ip or "any" }} + {{ token.created_at }} + +{% endfor %} +{% endcall %} {% endblock %} From f9708e874af39e928dfd1c3b7bfd2482073e6e25 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Wed, 1 Nov 2017 16:29:05 +0100 Subject: [PATCH 3/3] Fix the service list page --- admin/mailu/ui/templates/services.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/mailu/ui/templates/services.html b/admin/mailu/ui/templates/services.html index aee2a94e..4e415144 100644 --- a/admin/mailu/ui/templates/services.html +++ b/admin/mailu/ui/templates/services.html @@ -5,7 +5,7 @@ {% endblock %} {% block content %} -{% call table() %} +{% call macros.table() %} {% trans %}Service{% endtrans %} {% trans %}Status{% endtrans %}