SSL is required to authenticate keycloak behind traefik

Viewed 1904

I have the problem that my spring application with the keycloak adapter give me this warning:

SSL is required to authenticate. Remote address IP is secure: false, SSL required for: EXTERNAL .

The keycloak address is with https

Every request to my backend is blocked with a 401 Error and this warning in the console.

Keycloak is behind a reverse proxy: traefik

I also tried to remove the headers with traefik:

- traefik.http.middlewares.sso.headers.customrequestheaders.X-Forwarded-For=
- traefik.http.middlewares.sso.headers.customrequestheaders.X-Forwarded-Proto=
- traefik.http.middlewares.sso.headers.customrequestheaders.X-Forwarded-Host=
- traefik.http.middlewares.sso.headers.customrequestheaders.X-Real-IP=

Edit: I can fix it with keycloak.ssl-required = none and also in the admin panel but is this safe?

1 Answers
Related