Piotr Lada
Piotr Lada

Reputation: 61

How to configure HSTS headers in traefik

Help needed in configuring traefik using .toml file. The only configuration examples that I was able to find was for cases when used with Docker. Anyone can help?

Upvotes: 5

Views: 18666

Answers (2)

Daniel Tomcej
Daniel Tomcej

Reputation: 234

This section is included in the Basics section of Traefik's documentation:

https://doc.traefik.io/traefik/middlewares/http/headers/#using-security-headers

You can also see the configuration examples there. They include the settings configuring HSTS headers.

Upvotes: 3

Kenny
Kenny

Reputation: 641

For people with STS-issues when using Traefik, please take a look at my findings when using STS with self-signed certificates: How to use STS headers with Traefik when using Docker

Upvotes: 1

Related Questions