Traefik: Proxy set header

Created on 10 Mar 2017  路  3Comments  路  Source: traefik/traefik

I'm learning about docker and its capabilities, i'm moving the most of the things i have to docker and recently found Traefik.

I used nginx as a reverse proxy, and now i'm trying to figure out a way have a Nextcloud installation working along with traefik, because of the proxy_set_header which i haven't found any existence of it in traefik (been reading the docs but nothing, maybe i missed anything? i don't know).

When using nginx as nextcloud proxy i add these headers:

proxy_set_header Strict-Transport-Security "max-age=31536000";
proxy_set_header X-Content-Type-Options nosniff;
proxy_set_header X-Frame-Options "SAMEORIGIN";
proxy_set_header X-XSS-Protection "1; mode=block";
proxy_set_header X-Robots-Tag none;
proxy_set_header X-Download-Options noopen;
proxy_set_header X-Permitted-Cross-Domain-Policies none;

is there a way to aproach this on traefik? otherwise it'd be amazing if this feature is added.

statu5-frozen-due-to-age

Most helpful comment

What about something like this:

proxy_set_header Host $http_host;

Is this possible in traefik?

All 3 comments

I am working on adding this functionality right now in
https://github.com/containous/traefik/pull/1236

@dtomcej amazing, hope this is available soon, thank you so much!

What about something like this:

proxy_set_header Host $http_host;

Is this possible in traefik?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aximo picture aximo  路  3Comments

f3l1x picture f3l1x  路  3Comments

ewah picture ewah  路  3Comments

danielh1989 picture danielh1989  路  3Comments

pichouk picture pichouk  路  3Comments