fix: traefik middlewares for local and dev envs
This commit is contained in:
@@ -56,7 +56,7 @@ services:
|
|||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "treafik.docker.network=proxy"
|
- "treafik.docker.network=proxy"
|
||||||
- "traefik.http.services.headscale-ui.loadbalancer.server.port=80"
|
- "traefik.http.services.headscale-ui.loadbalancer.server.port=80"
|
||||||
|
|
||||||
# Prod Router
|
# Prod Router
|
||||||
- "traefik.http.routers.headscale-ui.rule=Host(`hs.forust.xyz`) && PathPrefix(`/admin`)"
|
- "traefik.http.routers.headscale-ui.rule=Host(`hs.forust.xyz`) && PathPrefix(`/admin`)"
|
||||||
- "traefik.http.routers.headscale-ui.entrypoints=websecure"
|
- "traefik.http.routers.headscale-ui.entrypoints=websecure"
|
||||||
@@ -66,13 +66,13 @@ services:
|
|||||||
# Local Router
|
# Local Router
|
||||||
- "traefik.http.routers.headscale-ui-local.rule=Host(`hs.workstation.internal`) && PathPrefix(`/admin`)"
|
- "traefik.http.routers.headscale-ui-local.rule=Host(`hs.workstation.internal`) && PathPrefix(`/admin`)"
|
||||||
- "traefik.http.routers.headscale-ui-local.entrypoints=websecure"
|
- "traefik.http.routers.headscale-ui-local.entrypoints=websecure"
|
||||||
- "traefik.http.routers.headscale-ui.middlewares=security-chain@file"
|
- "traefik.http.routers.headscale-ui-local.middlewares=security-chain@file"
|
||||||
- "traefik.http.routers.headscale-ui-local.service=headscale-ui"
|
- "traefik.http.routers.headscale-ui-local.service=headscale-ui"
|
||||||
- "traefik.http.routers.headscale-ui-local.tls=true"
|
- "traefik.http.routers.headscale-ui-local.tls=true"
|
||||||
# Dev Router
|
# Dev Router
|
||||||
- "traefik.http.routers.headscale-ui-dev.rule=Host(`hs.gigaforust.internal`) && PathPrefix(`/admin`)"
|
- "traefik.http.routers.headscale-ui-dev.rule=Host(`hs.gigaforust.internal`) && PathPrefix(`/admin`)"
|
||||||
- "traefik.http.routers.headscale-ui-dev.entrypoints=websecure"
|
- "traefik.http.routers.headscale-ui-dev.entrypoints=websecure"
|
||||||
- "traefik.http.routers.headscale-ui.middlewares=security-chain@file"
|
- "traefik.http.routers.headscale-ui-dev.middlewares=security-chain@file"
|
||||||
- "traefik.http.routers.headscale-ui-dev.service=headscale-ui"
|
- "traefik.http.routers.headscale-ui-dev.service=headscale-ui"
|
||||||
- "traefik.http.routers.headscale-ui-dev.tls=true"
|
- "traefik.http.routers.headscale-ui-dev.tls=true"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user