handle offload and passthrough for ssl
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user