bolkedebruin / rdpgw

Remote Desktop Gateway in Go for deploying on Linux/BSD/Kubernetes
Apache License 2.0
758 stars 119 forks source link

Starting problem #29

Closed Uzzi closed 2 years ago

Uzzi commented 2 years ago

Hi, I've this error after docker-compose up from /opt/rdpgw/dev/docker: Cannot get oidc provider: Get "http://localhost:8080/auth/realms/rdpgw/.well-known/openid-configuration": dial tcp 127.0.0.1:8080: connect: connection refused

How can I fix it? Thank you

bolkedebruin commented 2 years ago

You will need to wait until keycloak comes up.

Uzzi commented 2 years ago

docker-keycloak-1 | 14:05:49,360 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:9990 docker-rdpgw-1 | 2021/12/28 14:06:06 Cannot get oidc provider: Get "http://localhost:8080/auth/realms/rdpgw/.well-known/openid-configuration": dial tcp 127.0.0.1:8080: connect: connection refused

And 15 minutes later: 2021/12/28 14:19:32 Cannot get oidc provider: Get "http://localhost:8080/auth/realms/rdpgw/.well-known/openid-configuration": dial tcp 127.0.0.1:8080: connect: connection refused

then from http://EXTERNALIP8080/auth/realms/rdpgw/ is reachable

now 404 page not found

bolkedebruin commented 2 years ago

You do not seem to be runnibg my docker config. The providerUrl https://github.com/bolkedebruin/rdpgw/blob/master/dev/docker/rdpgw.yaml#L12 and yours is not equal to that. It should connect to http://keycloak/xxx not to localhost

Uzzi commented 2 years ago

Ok, now works, where can I found howto about user/rdp host configuration? I need to config user1--->ip1:3389, user2--->ip2:3389 ecc ecc

Thank you