i set https on /etc/gitlab/gitlab.rb
external_url = 'https://gitlab.domain.com'
nginx['redirect_http_to_https'] = true
nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.example.crt"
nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.example.com.key"
gitlab-ctl reconfigure no error, https://gitlab.domain.com didn’t work but http://gitlab.domain.com still working, what i do to https work?
sorry for bad english
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
@encu This is the right config, it works for me, I did not put the external url here
nginx['enable'] = true
nginx['redirect_http_to_https'] = true
nginx['redirect_http_to_https_port'] = 80
nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.crt"
nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.key"
What it is not sslcertificate it is ssl_certificate the same thing for redirect and key.
Hope this helps
Make sure your server is listening on port 443, show me the output of netstat -ltnp | grep 443
Also you can post the output of your error log tail -50 /var/log/nginx/error.log
Are you sure that your ssl certificates are in the path you specified?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.