-
|
Hello. Lately i've been deploying Immich with Traefik on top of it and Keycloak for authentication. I solved all issues until now. The problem here is the dual proxy setup. As Immich docs tells me, i can add custom reverse proxy on top of immich's nginx proxy. There was no issue with it until i want to implement Keycloak to this setup. I quickly set up new realm and client in Keycloak, filled up all the required fields on both sides (Keycloak and Immich) and it turned into this error inside immich-server container: It looks like Immich server can't resolve keycloak.local.dashrave.eu domain. On keycloak's end there isn't any mark of any action so immich server clearly can't get to the keycloak. And here's the issue with double proxy setup. If i directly connect immich-server container to the proxy network (made by Traefik) keycloak hostname with it's port can be resolved by Immich. Did someone have issue like this? If so, how did you solve it? I might need to edit the nginx immich proxy in order to make it work. Btw, i found @PixelJonas having the same setup. At least he do have Keycloak as authentication for Immich. PS: In case of need to see any configuration, i will provide of course. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
|
Are you using oauth to integrate with keycloak? If so, the domain you use needs to be reachable from the mobile app, web app and from the immich-server container. This doesn't really have anything to do with the immich-proxy container or proxies in general. This is just good old networking and DNS resolution. |
Beta Was this translation helpful? Give feedback.
-
|
As already discussed in private chat - this looks like a DNS issue.
I think the proxies are not in the way of you authenticating via SSO but the DNS |
Beta Was this translation helpful? Give feedback.
-
|
It has been fixed. Turned out I just needed to keep |
Beta Was this translation helpful? Give feedback.
It has been fixed. Turned out I just needed to keep
systemd-resolveddisabled and stopped and just edit/etc/resolv.confsuch a way that thenameserver 127.0.0.88line get changed to local loopback sonameserver 127.0.0.1(or any IP that's your PiHole DNS server on). This is due to docker copies this file to every container as it's DNS list. So as i had the wrong IP, the local domain didn't have a chance to get resolved.