add forwarded-for header for forgejo

This commit is contained in:
Pim Kunis 2023-08-23 18:05:07 +02:00
parent 84521ec8a9
commit 59db3b2fb7

View file

@ -49,6 +49,8 @@ services:
- traefik.http.routers.forgejo.service=forgejo - traefik.http.routers.forgejo.service=forgejo
- traefik.http.services.forgejo.loadbalancer.server.port=3000 - traefik.http.services.forgejo.loadbalancer.server.port=3000
- traefik.docker.network=traefik - traefik.docker.network=traefik
- traefik.http.middlewares.set-forwarded-for.headers.hostsProxyHeaders=X-Forwarded-For
- traefik.http.routers.forgejo.middlewares=set-forwarded-for
configs: configs:
- source: config - source: config
target: /data/gitea/conf/app.ini target: /data/gitea/conf/app.ini