[keycloak-user] reverse proxy nginx before keycloak

Greet Robijns greetrobijns at gmail.com
Thu Jan 24 09:10:49 EST 2019


Hi,

I am having some trouble configuring my nginx server before my keycloak
server. I read the documentation at:
https://www.keycloak.org/docs/latest/server_installation/index.html#_setting-up-a-load-balancer-or-proxy
.

The problem is that the layout files are not loading and after logging in,
the redirection is incorrect: it goes to /auth/.... instead of
/test/aa/auth.

I am really stuck here? Should I change something in my keycloak
configuration?

my nginx:

worker_processes 1;

events { worker_connections 1024; }

http {

sendfile on;

server {
listen 8080;

location /test/aa/ {
resolver 127.0.0.11;
proxy_pass http://mc:4000/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
}

}

}

Kind Regards,
Greet Robijns


More information about the keycloak-user mailing list