Create an SSL directory, and then copy your certificate to the SSL directory:
# mkdir/etc/gitlab/ssl # chmod 700/etc/gitlab/ssl# CP luck.crt luck.key/etc/gitlab/ssl/
Edit the/etc/gitlab/gitlab.rb file and modify it to:
External_url "https://www.abc.com" nginx[' redirect_http_to_https '] = truenginx[' ssl_certificate '] = "/etc/gitlab/ssl /luck.crt "nginx[' ssl_certificate_key ') ="/etc/gitlab/ssl/luck.key "
" Span style= "line-height:0px;" > after you use Gitlab-ctl reconfigure to rebuild the configuration, and then modify the Nginx configuration file/var/opt/gitlab/nginx/conf/ Default settings in gitlab-http.conf:
Listen *:443 default_server; SSL on; SSL_CERTIFICATE/ETC/GITLAB/SSL/LUCK.CRT; Ssl_certificate_key/etc/gitlab/ssl/luck.key;
Then create a/var/opt/gitlab/nginx/conf/index.conf file to use for HTTP jump https:
server {Listen *:80; server_name www.abc.com; Rewrite ^ (. *) $ https://$host $ permanent;}
Finally, modify the/var/opt/gitlab/nginx/etc/nginx.conf configuration file and add the following to load the index.conf:
include/var/opt/gitlab/nginx/conf/index.conf;include/var/opt/gitlab/nginx/conf/gitlab-http.conf;
Once all of the above is complete, use gitlab-ctl Restart to restart all services and use HTTPS to access the Gitlab.
Eclipse Client Import Project error
SSL host could not being verified (set http.sslverify=false in Git configuration)
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/80/6E/wKiom1dBUa2zfW2IAACTZRyOfUE857.png "title=" Picture 1.png "alt=" Wkiom1dbua2zfw2iaactzryofue857.png "/>
Open Eclipse
W Indow -- Preferences --Configuration--- Add entry
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/80/6E/wKiom1dBUbaQHqZ-AABb7fbC0zM746.png "title=" Picture 2.png "alt=" Wkiom1dbubaqhqz-aabb7fbc0zm746.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/80/6C/wKioL1dBUq-gCDXgAACrgD6OJSQ763.png "title=" Picture 3.png "alt=" Wkiol1dbuq-gcdxgaacrgd6ojsq763.png "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/80/6C/wKioL1dBUrui1CDJAABz1jU5Sjs189.png "title=" Picture 4.png "alt=" Wkiol1dburui1cdjaabz1ju5sjs189.png "/>
This article is from the "Stop fighting = Stop Life" blog, make sure to keep this source http://53cto.blog.51cto.com/9899631/1775865
Gitlab turn on HTTPS encryption and full station HTTPS