Questions tagged [traefik-middleware]
10 questions
1
vote
0 answers
How to use traefik as a reverse proxy for grafana?
I try to use traefik as a reverse proxy for grafana. I want to route the requests coming to localhost/grafana to grafana. Here is my that part of docker compose file:
grafana:
image: grafana/grafana:9.4.2
ports:
- "3000:3000"
…

Serhat Sarı
- 11
- 2
0
votes
0 answers
Traefik trying to update certificates from Let's Encrypt fails with error 403
We have traefik (v2.9.9) running in a Docker Container with a number of services using Let's Encrypt to request certificates and traefik's basicAuth middelware to secure access to this services.
When traefik tries to update the certs error 403…

M. Koch
- 3
- 3
0
votes
0 answers
Forwarding Set-Cookie header via Grafana auth proxy to the browser
I'm using Grafana auth proxy with Traefik forwardAuth middleware to secure my dashboards. We store access and refresh tokens as server-side http-only cookies. These get forwarded to my auth service which verifies the access token or returns a new…

DekiChan
- 375
- 1
- 4
- 14
0
votes
0 answers
Add custom and dynamic response header in traefik with a docker compose file
I need to add Content-Security-Policy in all my response headers. The trick is that I need to set the value of the header to a param that comes in the url query, so, for instance, if my request is https://example.com?foo=bar, then my header should…

Agustín Escobar
- 1
- 1
0
votes
1 answer
Redirect naked to www with traefik
I want to redirect example.com to www.example.com.
In the traefik container's docker-compose.yml, I defined a redirection middleware that I can use from multiple services:
traefik:
image: traefik
# ...
labels:
…

lonix
- 14,255
- 23
- 85
- 176
0
votes
1 answer
Traefik with kubernetes Ingress Controller Hostregexp rule edition
I would like to apply HostRegExp with Traefik as ingress Controller. I have something similar like below with docker as provider in Traefik service.
"traefik.http.routers.test.rule=HostRegexp(`{host:.+}`) && PathPrefix(`/test`)"
Would like to…

road2victory
- 486
- 4
- 12
0
votes
0 answers
In Traefik, how do I tell which FQDN a client connected to over TLS
I am trying to setup a test system with two domains. Say, server1.com and server2.com. I define the secure entryPoint, define one router and one service - a simple loadBalancer with just one URL. When I hit the endPoint like this:
$ curl -k…

Subhabrata Biswas
- 54
- 4
0
votes
0 answers
Convert NGINX host mapping example to Traefik host mapping w/ Kubernetes manifest
The broader problem is that I have a Sonatype Nexus server running within a K3s cluster, and I am trying to serve/expose endpoints for Docker clients to pull images from. In Sonatype's documentation they have example host mapping strategies listed…

Roondawg
- 11
- 3
0
votes
0 answers
I need to strip middle part of the URL in Traefik ingress, and need to route only cosidering tale part of the URL
This is my ingress and middle ware configuration yml file
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: demo-ingress
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: web
…

Gayan Kodithuwakku
- 68
- 1
- 8
0
votes
0 answers
Reading from a secret in Traefik Middleware
I am working on a middleware using traefik that basically adds a Authorization header and wondering how I can read that header from a secret that already exists. Below is the middleware script
apiVersion: traefik.containo.us/v1alpha1
kind:…

DoIt
- 3,270
- 9
- 51
- 103