You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-11-23 22:04:47 +02:00
Parametrize hosts
Allows to use mailu without docker-compose when hostnames are not set up by docker itself but provided via a separate resolver. Use case: use mailu using nomad scheduler and consul resolver instead of docker-compose. Other servers are provided by the DNS resolver that resolves names like admin.service.consul or webmail.service.consul. These names needs to be configurable.
This commit is contained in:
@@ -12,6 +12,14 @@ with open("/etc/resolv.conf") as handle:
|
||||
content = handle.read().split()
|
||||
args["RESOLVER"] = content[content.index("nameserver") + 1]
|
||||
|
||||
if "HOST_WEBMAIL" not in args:
|
||||
args["HOST_WEBMAIL"] = "webmail"
|
||||
if "HOST_ADMIN" not in args:
|
||||
args["HOST_ADMIN"] = "admin"
|
||||
if "HOST_WEBDAV" not in args:
|
||||
args["HOST_WEBDAV"] = "webdav:5232"
|
||||
if "HOST_ANTISPAM" not in args:
|
||||
args["HOST_ANTISPAM"] = "antispam:11334"
|
||||
|
||||
# TLS configuration
|
||||
args["TLS"] = {
|
||||
|
||||
Reference in New Issue
Block a user