I have Gitlab and Mattermost installed in a LXD container where single sign-on is not working.
The details are in my question on the LXD forum: https://discuss.linuxcontainers.org/t/tcp-connection-to-host-ip-from-container-refused/11439
The answer I got there is: “You need to make sure the service inside the instance is listening on the proxys connect IP rather than the loopback address if using Nat mode.” https://discuss.linuxcontainers.org/t/tcp-connection-to-host-ip-from-container-refused/11439/13?u=madsurgeon
Now I am wondering how this is best configured in Gitlab.
In /etc/gitlab/gitlab.rb I find a few settings referring to 127.0.0.1, all commented out. But it is not clear to me which ones I would need to uncomment or change.