Headscale: Add possible tags for multi-entrypoint traefik config

This commit is contained in:
GHOSCHT 2024-05-03 12:19:35 +02:00
parent 311ae93432
commit af61ee537a
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82

View file

@ -14,11 +14,20 @@
command = "headscale serve"; command = "headscale serve";
labels = { labels = {
"traefik.enable" = "true"; "traefik.enable" = "true";
"traefik.http.services.headscale-external.loadbalancer.server.port" = "8080";
"traefik.http.services.headscale.loadbalancer.server.port" = "8080";
"traefik.http.routers.headscale.service" = "headscale";
"traefik.http.routers.headscale.entrypoints" = "websecure-external"; "traefik.http.routers.headscale.entrypoints" = "websecure-external";
"traefik.http.routers.headscale.rule" = "Host(`headscale.ghoscht.com`)"; "traefik.http.routers.headscale.rule" = "Host(`headscale.ghoscht.com`)";
"traefik.http.routers.headscale.tls" = "true"; "traefik.http.routers.headscale.tls" = "true";
"traefik.http.routers.headscale.tls.certresolver" = "letsencrypt"; "traefik.http.routers.headscale.tls.certresolver" = "letsencrypt";
# "traefik.http.services.headscale-external.loadbalancer.server.port" = "8080";
# "traefik.http.routers.headscale-external.service" = "headscale-external";
# "traefik.http.routers.headscale-external.rule" = "Host(`headscale.ghoscht.com`)";
# "traefik.http.routers.headscale-external.entrypoints" = "websecure";
# "traefik.http.routers.headscale-external.tls" = "true";
# "traefik.http.routers.headscale-external.tls.certresolver" = "letsencrypt";
}; };
volumes = [ volumes = [
"/storage/dataset/docker/headscale/headscale_config:/etc/headscale" "/storage/dataset/docker/headscale/headscale_config:/etc/headscale"