Gitlab Omnibus using https without domain name

Hi I’m trying to setup gitlab on my local network with https and without a domain name.
Example: https:192.168.2.73
I can get gitlab working fine with just http but https is giving me some issues. Any ideas? Here is my gitlab.rb file

The URL through which GitLab will be accessed.

external_url “https://192.168.2.73

Whether to redirect http to https.

nginx[‘enable’] = true
nginx[‘http2_enabled’] = false
nginx[‘gitlab_https’] = true
nginx[‘gitlab_port’] = 443
nginx[‘redirect_http_to_https’] = true
nginx[‘redirect_http_to_https_port’] = 80
nginx[‘ssl_certificate’] = “/etc/gitlab/ssl/192.168.2.73.crt”
nginx[‘ssl_certificate_key’] = “/etc/gitlab/ssl/192.168.2.73.com.key”
nginx[‘ssl_ciphers’] = ‘EECDH:EDH:!DSS:!CAMELLIA:!SEED:!3DES:!DES:!RC4:!PSK:!eNULL:!MD5:!EXPORT:@STRENGTH
nginx[‘ssl_prefer_server_ciphers’] = “on”
nginx[‘ssl_protocols’] = “TLSv1 TLSv1.1 TLSv1.2”
nginx[‘ssl_session_cache’] = “builtin:1000 shared:SSL:10m”
nginx[‘ssl_session_timeout’] = “5m”
nginx[‘ssl_dhparam’] = “/etc/gitlab/ssl/dhparams.pem”
nginx[‘listen_addresses’] = [’*’]

Hi

Check nginx log for errrors /var/log/opt/gitlab/nginx
there could be problem with you certificate files in /etc/gitlab/ssl/ try to recreate them.

1 Like

I checked it looks like something was going on with the certificate. I made a new one and it worked! Thanks for your reply!

1 Like