Hi,
Can anyone give me a hint how to fix/further troubleshoot this problem, please?
I have a problem that I cannot forward to a service with a specified by url. I see that the https request is correctly forwarded, but the answer is never getting returned to the client that connects to the traefik proxy. The forward authentication is working as expected,
I've checked the network and server connectivity by open a shell in the traefic container installing curl and executing curl -k -u user:password https://server.example.local:8183
and could successfully read the content of the webpage.
On the Dashboard and In the traefik v2.11 logs I can see no errors even with debug enabled.
I also can use services with http://
. So I think, that the option "--serverstransport.insecureskipverify=true"
is not working as expected. because i need the curl -k
option that disables verification to get the data from the server.
My statis config is:
services:
traefik:
image: traefik:2.11
container_name: traefik
command:
- "--entryPoints.web-secure.address=:443"
- "--serverstransport.insecureskipverify=true"
...
My dynamic config for this service is:
http:
middlewares:
# http-middlewares - Strip prefixes used for routers
strip-prefixes:
stripPrefix:
forceSlash: false
prefixes:
- "/dashboard"
- "/bot/"
- "/bot"
redirect-http:
redirectScheme:
scheme: https
my-service-auth-forward:
forwardAuth:
address: "https://server.example.local:8183"
tls:
caOptional: true
insecureSkipVerify: true
trustForwardHeader: true
my-service-mid:
chain:
middlewares:
- secHeaders
- strip-prefixes
- redirect-http
- my-service-auth-forward
services:
my-service-service:
loadBalancer:
servers:
- url: "https://server.example.local:8183"
routers:
my_service_router:
entryPoints:
- web-secure
rule: "Host(`bot.example.com`) && ( PathPrefix(`/bot/`) || PathPrefix(`/bot/`) )"
middlewares:
- "my-service-mid"
service: "my-service-service"
tls: {}