Integrating Headscale and Headplane with Pangolin

These are my traefik labels which work. Headplan developer changed it from /admin to /admin/

labels:
  - traefik.enable=true
  # Router Definition 
  - traefik.http.routers.headplane-rtr.rule=Host(`${HS_URL}`) && PathPrefix(`/admin`)
  - traefik.http.routers.headplane-rtr.priority=100 # sets priority over base-domain
  - traefik.http.routers.headplane-rtr.entrypoints=websecure
  - traefik.http.routers.headplane-rtr.tls.certresolver=myresolver
  - traefik.http.services.headplane-svc.loadbalancer.server.port=3000 # headplane port
  # ---- Middleware for redirect ----
  - traefik.http.middlewares.headplane-addslash.redirectregex.regex=^https?://([^/]+)/admin$$
  - traefik.http.middlewares.headplane-addslash.redirectregex.replacement=https://$${1}/admin/
  - traefik.http.middlewares.headplane-addslash.redirectregex.permanent=true
1 Like