[Feature Request] Ability to set passHostHeader to false on Auto created service for resource target #1589

Closed
opened 2026-04-05 19:36:20 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @oidebrett on 4/22/2025

Currently, when you create a new resource and map this to a target, a service gets configured in Traefik. By default, this service sets the passHostHeader to true

There are some cases where its required to set passHostHeader to false such as when you are trying to proxy to an existing publicly accessible website with its own ssl.

for example

http:
  routers:
    add-http-router:
      rule: "Host(add.mydomain.com)"
      entryPoints:
        - websecure
      service: add-http-service
      tls: {}

  services:
    add-http-service:
      loadBalancer:
        servers:
          - url: "https://remote.externaldomain.com:443"
        passHostHeader: false  # <--- Important but doesnt get created by Pangolin nor any option for it
*Originally created by @oidebrett on 4/22/2025* Currently, when you create a new resource and map this to a target, a service gets configured in Traefik. By default, this service sets the passHostHeader to true There are some cases where its required to set passHostHeader to false such as when you are trying to proxy to an existing publicly accessible website with its own ssl. for example ``` http: routers: add-http-router: rule: "Host(add.mydomain.com)" entryPoints: - websecure service: add-http-service tls: {} services: add-http-service: loadBalancer: servers: - url: "https://remote.externaldomain.com:443" passHostHeader: false # <--- Important but doesnt get created by Pangolin nor any option for it ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1589