Switch to rule-based hosts for certificate generation

This commit is contained in:
kaiyou
2017-09-17 12:09:08 +02:00
parent 52daccb74e
commit 01182d3708
3 changed files with 5 additions and 9 deletions

View File

@@ -23,8 +23,10 @@ BIND_ADDRESS=127.0.0.1
# Main mail domain # Main mail domain
DOMAIN=mailu.io DOMAIN=mailu.io
# Exposed mail-server hostname # Main hostname for announces, and list of all available hostnames, separated
# by comas
HOSTNAME=mail.mailu.io HOSTNAME=mail.mailu.io
HOSTNAMES=mail.mailu.io,alternative.mailu.io,yetanother.mailu.io
# Postmaster local part (will append the main mail domain) # Postmaster local part (will append the main mail domain)
POSTMASTER=admin POSTMASTER=admin

View File

@@ -22,10 +22,3 @@ domain = "{{ DOMAIN }}"
watch = true watch = true
exposedbydefault = false exposedbydefault = false
[acme]
email = "{{ POSTMASTER }}@{{ DOMAIN }}"
storageFile = "/certs/acme.json"
onDemand = true
entryPoint = "https"

View File

@@ -22,7 +22,8 @@ exposedbydefault = false
[acme] [acme]
email = "{{ POSTMASTER }}@{{ DOMAIN }}" email = "{{ POSTMASTER }}@{{ DOMAIN }}"
storageFile = "/certs/acme.json" storageFile = "/certs/acme.json"
onDemand = true onDemand = false
OnHostRule = true
entryPoint = "https" entryPoint = "https"