mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-25 06:57:11 +02:00
docs: update traefik example and add note about forwarded headers (#784)
This commit is contained in:
parent
268a7067c1
commit
f03f57980c
1 changed files with 10 additions and 3 deletions
|
@ -543,15 +543,22 @@ spec:
|
|||
|
||||
#### Traefik docker-compose
|
||||
|
||||
If the `forward_auth_url` is also handled by Traefik, you will need to configure Traefik to trust the `X-Forwarded-*`
|
||||
headers as described in [the documentation](https://docs.traefik.io/v2.2/routing/entrypoints/#forwarded-headers).
|
||||
|
||||
```yml
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
traefik:
|
||||
# The official v2.0 Traefik docker image
|
||||
image: traefik:v2.0
|
||||
# The official v2.2 Traefik docker image
|
||||
image: traefik:v2.2
|
||||
# Enables the web UI and tells Traefik to listen to docker
|
||||
command: --api.insecure=true --providers.docker
|
||||
command:
|
||||
- "--api.insecure=true"
|
||||
- "--providers.docker=true"
|
||||
- "--entrypoints.web.address=:80"
|
||||
- "--entrypoints.web.forwardedheaders.insecure=true"
|
||||
ports:
|
||||
# The HTTP port
|
||||
- "80:80"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue