Can I allocate dynamic values in headers middleware?

Hi all,

I have been recently playing with traefik + authentik + emby. I just saw an older post about dynamic values in middlewear headers.
Middleware: header. Dynamic values for reference

Is it still not possible?

(I think its the closest thing to what I want?:
My scenario:
Authentik returns X-Emby-Uri and it's captured, then traefik redirects to the location specified:)

For example my middleware is something like the following, where X-Emby-Uri is a dynamic value that I want to append onto "https://myurl.com":

    emby-auth:
      forwardAuth:
        address: "http://authentik-server:9000/outpost.goauthentik.io/auth/traefik"
        authResponseHeaders:
          - "X-Emby-Uri"  
          - "Set-Cookie"
        trustForwardHeader: true


    emby-redirect:
      headers:
        customResponseHeaders:
          Location: "https://myurl.com{http.response.header.X-Emby-Uri}"

Cheers

I think it’s still not possible.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.