NGINX - Keycloack - 443 ??

Issues related to applications and software problems
Post Reply
mcheoti
Posts: 36
Joined: 2016/02/13 10:07:42
Location: Austria
Contact:

NGINX - Keycloack - 443 ??

Post by mcheoti » 2018/01/18 14:56:41

HI everbody!

I have CentOS7 based machine, with an NGINX Webserver which transports all the traffic over port 443.
Good news, allmost everythin is working but i only have a little problem.
I installed keycloack and added the location patch in the NGINX Config

Code: Select all

location /auth/ {
        #chris add
        proxy_set_header X-Forwarded-Host $host:$server_port;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://127.0.0.1:9800/auth/;
        }
Now i can access the machine via (Link changed)

Code: Select all

https://testserver.example.com/auth/
But when i click on the Administration Console, i get an redirection see here:
target link is:

Code: Select all

https://testserver.example.com/auth/admin/
end link: and please see https was replaced by http with port 443 as an addition

Code: Select all

http://testserver.example.com:443/auth/admin/master/console/
What do i miss and what should i change?
Cheers Mchoeti

Post Reply