Nextcloud and Keycloak
-
Hi,
I am running Nextcloud behind pfSense/haproxy and this is working fine.
Now I am trying to integrate Nextcloud with Keycloak. I have set up a realm, a client and a test user. I have configured Nextcloud to redirect to Keycloak for login and Keycloak to re-redirect afterwards back to Nextcloud.
However, it only works up to the redirection to Keycloak where I can authenticate as the test user. Then it tries to re-redirect back to Nextcloud but I keep getting a "504 Gateway Timeout".
So for some reason the re-redirection fails.
And I am suspecting my settings for Nextcloud and/or Keycloak as backends to be the culprit.
Does anyone here have a similar configuration and could give me a pointer?
Many thanks.
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.