Skip to content

Instantly share code, notes, and snippets.

@rafaelfoster
Created April 28, 2014 13:29
Show Gist options
  • Save rafaelfoster/11372049 to your computer and use it in GitHub Desktop.
Save rafaelfoster/11372049 to your computer and use it in GitHub Desktop.
Gitlab configuration to enable HTTPS
# Changes in apache
<VirtualHost *:443>
ServerName git.server.com.br
ServerSignature Off
SSLEngine On
SSLProxyEngine On
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
RequestHeader set X_FORWARDED_PROTO 'https'
</VirtualHost>
# Changes in ~/gitlab/config/gitlab.yml
gitlab:
## Web server settings
host: git.rodrimar.com.br
port: 443
https: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment