Fix letsencrypt by using a separate port than the proxy

master
kaiyou 7 years ago
parent 26da4f306d
commit de2a06aec1

@ -42,7 +42,7 @@ http {
# In any case, enable the proxy for certbot if the flavor is letsencrypt # In any case, enable the proxy for certbot if the flavor is letsencrypt
{% if TLS_FLAVOR == 'letsencrypt' %} {% if TLS_FLAVOR == 'letsencrypt' %}
location ^~ /.well-known/acme-challenge/ { location ^~ /.well-known/acme-challenge/ {
proxy_pass http://localhost:8000; proxy_pass http://localhost:8008;
} }
{% endif %} {% endif %}

@ -12,7 +12,7 @@ command = [
"-m", "{}@{}".format(os.environ["POSTMASTER"], os.environ["DOMAIN"]), "-m", "{}@{}".format(os.environ["POSTMASTER"], os.environ["DOMAIN"]),
"certonly", "--standalone", "certonly", "--standalone",
"--cert-name", "mailu", "--cert-name", "mailu",
"--preferred-challenges", "http", "--http-01-port", "8000", "--preferred-challenges", "http", "--http-01-port", "8008",
"--keep-until-expiring", "--keep-until-expiring",
"--rsa-key-size", "4096", "--rsa-key-size", "4096",
"--config-dir", "/certs/letsencrypt", "--config-dir", "/certs/letsencrypt",

Loading…
Cancel
Save