Gitlab Integration Nextcloud 21

Hi, I am hosting my own Gitlab server. Unfortunately I cannot access to it from Nextcloud via access token. Nevertheless if I connect to my public gitlab account hosted by gitlab.com it is working.

Any suggestions?

Having the same issue…

This is an old thread, but as I just found the solution (at least a partial one) I am reporting it here, in case someone else is having the same problem.

The problem and it’s solution can be found here:Login problems · Issue #16 · nextcloud/integration_gitlab · GitHub

TL;DR: if you own your Nextcloud server, you have to add 'allow_local_remote_servers' => true in your Nextcloud configuration.
You can also use the occ utility to do it:
occ config:system:set allow_local_remote_servers --value=true --type=boolean

This worked for me for some time, but then it stopped working without any apparent reason, and now I get a timeout (instead of an error) whenever I try to connect Nextcloud to my Gitlab instance.