CentOS系统中GitLab客户端的安装教程

2020-01-30 14:59:24丽君

server_name
access_log
error_log
ssl_certificate gitlab.crt;
ssl_certificate_key gitlab.key;

ps:证书生成方法如下(正式环境建议将生成公钥用第三方签名使浏览器能识别):

复制代码
cd /usr/local/nginx/conf
openssl genrsa -out gitlab.key 2048
openssl req -new -x509 -days 36500 -key gitlab.key -out gitlab.crt -subj "/C=CN/ST=Shanghai/L=Shanghai/O=LinuxEye Ltd./OU=LinuxEye"

重启nginx

复制代码
service nginx restart

访问:https://git.jb51.net,用户名/密码:root/5iveL!fe