mirror of
https://github.com/optim-enterprises-bv/Mailu-OIDC.git
synced 2025-11-01 18:47:47 +00:00
Allow authentication from webmail directly, fixes #308
This commit is contained in:
@@ -4,11 +4,13 @@ import jinja2
|
||||
import os
|
||||
import socket
|
||||
import glob
|
||||
|
||||
|
||||
convert = lambda src, dst: open(dst, "w").write(jinja2.Template(open(src).read()).render(**os.environ))
|
||||
|
||||
# Actual startup script
|
||||
os.environ["FRONT_ADDRESS"] = socket.gethostbyname("front")
|
||||
if os.environ["WEBMAIL"] != "none":
|
||||
os.environ["WEBMAIL_ADDRESS"] = socket.gethostbyname("webmail")
|
||||
|
||||
for dovecot_file in glob.glob("/conf/*"):
|
||||
convert(dovecot_file, os.path.join("/etc/dovecot", os.path.basename(dovecot_file)))
|
||||
|
||||
Reference in New Issue
Block a user