How to change GitLab URL that is received in e-mails

Hello,

I have just installed GitLab in my own server. That is set using NGINX web server listening on port 8030.

On the other hand, I have Apache listening on port 80 and 443 which is configured to proxy any request from https://gitlab.example.com to http://gitlab.example.com:8030.

It works perfectly, but the problem is when GitLab sends an e-mail, the URL that is included in the mail is http://gitlab.example.com:8030. So I need to copy it, paste in browser url and change URL to become https://gitlab.example.com.

Is there a way to make the e-mail include the external URL used to connect to the server?

Regards
Jaime

2 Likes

It am facing the same issue - 5 years later. Is there a fix or a workaround?

Usually such problems means that Apache/Nginx or whatever is being used before Gitlab is not configured properly, meaning it is not sending the X-Forwarded-For headers, etc. Check Apache/Nginx documentation on how to do that. Some of that is already mentioned here: NGINX settings | GitLab and also lower down in that page.

If you don’t send that information to Gitlab, then URL’s are incorrectly shown just like mentioned by the OP.

1 Like