[keycloak-user] Gatekeeper docker configuration question

Dimitris Charlaftis dharlaftis at ekt.gr
Tue Jan 22 04:32:15 EST 2019


Hello,

I use the following gatekeeper docker image

https://hub.docker.com/r/keycloak/keycloak-gatekeeper/

In the gatekeeper-config.yaml file

---

client-id: test_app
client-secret: xxxxxxxxxxxxxxxxxxxxxxxxxxxx
discovery-url: http://dev.server:8202/auth/realms/internal_applications
listen: 127.0.0.1:3000
secure-cookie: false
enable-default-deny: false
redirection-url: http://site.gr
upstream-url:  127.0.0.1:80
resources:
- uri: /*
   white-listed: true

---

(keycloak server runs at http://dev.server:8202)

  I run the gatekeeper container as following

  docker run --name=keycloak_gatekeeper --rm -it -v 
/home/dharlaftis/docker/gatekeeper:/tmp -p 8213:3000 
keycloak/keycloak-gatekeeper --config /tmp/gatekeeper-config.yaml

As i have a port mapping 8213:3000, i expect the following sxcenatio

1. I hit the host machine through http at 8213 port http://dev.server:8213

2. will end up to the listening interface 127.0.0.1:3000 of the gatekeeper

which in turn

3. will redirect the request to http://site.gr


correct?

none of the above happens... when i hit http://dev.server:8213 nothing 
happens (site unavailable).

Also, what is the difference between redirection-url and upstream-url? 
How is this configured?

Thank you in advance!!! please help...

Dimitris


-- 
_____________________________

Dimitris Charlaftis
Software Engineer

National Documentation Center
email: dharlaftis at ekt.gr
_____________________________



More information about the keycloak-user mailing list