handle offload and passthrough for ssl

This commit is contained in:
2023-11-13 17:22:24 +11:00
parent 3df716686d
commit 6536d7f0ff

View File

@@ -31,7 +31,7 @@ def external(container):
if 'traefik.enable=true' in s: if 'traefik.enable=true' in s:
if 'true' in s: if 'true' in s:
traefik_on=True traefik_on=True
m=re.search( r"traefik.\S+.routers.\S+.rule=\s*Host\S+\(\`(.*)\`\)", s ) m=re.search( r"traefik.\S+.routers.\S+.rule=\s*Host\S*\(\`(.*)\`\)", s )
if m and 'depaoli.id.au' in m[1]: if m and 'depaoli.id.au' in m[1]:
ext_host=True ext_host=True
if traefik_on and ext_host: if traefik_on and ext_host: