Hello Stéphane,

I had the same situation, this was my fix.
In your apache Virtual Host config, add this in your *<Location />*

*AddOutputFilterByType SUBSTITUTE text/html*
*Substitute "s|http://mygitlab.com:90|https://**mygitlab.com
<http://mygitlab.com>**:443|i"*

However, just a heads up.
Whenever you click on a link of an email notification of GitLab it will go
to the hostname and port of the server.
In your case it will probably be a plain text HTTP server and not a
connection encrypted with SSL/TLS, to configure it on your GitLab server
you could read this readme
<https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/doc/settings/nginx.md>
.

Kind regards,

Jeroen

Op 26 okt. 2015 13:04 schreef "Stéphane JAILLIARD" <
stephane.jailli...@gmail.com>:

> Hello,
>
> My Gitlab is configured to use URL : http://mygitlab.com:90
>
> I configured Apache as proxy server to have HTTS instead of HTTP.
>
>
> In my /etc/gitlab/gitlab.rb file I have this :
>
> external_url 'http://mygitlab.com:90/'
>
>
> In my /var/opt/gitlab/gitlab-rails/etc/gitlab.yml file I have this :
>
> ## GitLab settings
> gitlab:
> ## Web server settings (note: host is the FQDN, do not include http://)
> host: mygitlab.com
> port: 90
> https: false
>
>
> This is my apache conf file for Gitlab :
>
> <VirtualHost *:443>
>         ServerAdmin**********************
>         ServerName mygitlab.com
>
>         SSLEngine on
>
>         SSLCertificateFile /etc/apache2/ssl/mygitlab.com.crt
>         SSLCertificateKeyFile /etc/apache2/ssl/mygitlab.com.key
>
>         SSLCertificateChainFile /etc/apache2/ssl/GandiStandardSSLCA2.crt
>         SSLCertificateChainFile /etc/apache2/ssl/USERTrustRSAAddTrustCA.crt
>
>         ProxyRequests     Off
>         ProxyPreserveHost On
>         ProxyPass / http://127.0.0.1:90/ nocanon
>
>         <Location />
>                 ProxyPassReverse /
>                 Order deny,allow
>                 Allow from all
>         </Location>
>
> </VirtualHost>
>
>
> Actually Gitlab works fine on both http://mygitlab.com:90 and
> https://mygitlab.com but on the second URL if I click on a project and
> then on "HTTP" on the head of the page I see the http://mygitlab.com:90
> instead of https://mygitlab.com on the details.
>
> I tried to edit gitlab.yml and gitlab.rb but I'm not able to fix this.
>
>
> I tried this :
>
> - Just edit gitlab.yml and restart gitlab
> - Just edit gitlab.rb and restart gitlab
> - Edit gitlab.yml and gitlab.rb ans restart gitlab
>
> None of this fixed my problem.
>
> I use GitLab 7.7.2 and Ubuntu 14.04
>
> Note : mygitlab.com is not my real domain.
>
> Any ide to fix this ?
>
> Thank you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GitLab" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to gitlabhq+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gitlabhq/a5b2ca6c-e36d-4cd0-bdc3-a17085a46a42%40googlegroups.com
> <https://groups.google.com/d/msgid/gitlabhq/a5b2ca6c-e36d-4cd0-bdc3-a17085a46a42%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/CALXQeksZAm%2BMBvmB4bttoOoCcONX2FQLWNb-o4s6ESpkszSHFA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to