@houfu actually NextCloud is extremely problematic resource wise and you should move away from it if possible. If you need SSO stuff to work can take a look at Authentik and Keycloak. I personally am lazy and just use Cloudflare Access on things I need publicly accessible but private.