GitLab使用

版本:GitLab Community Edition 8.9.9

1.配置权限

public,private
developer,master,owner

project
groups

2.ssh免密码登录
ssh-keygen -t rsa -C "your_email@youremail.com"

git config --global user.name "John Doe"
git config --global user.email johndoe@example.com

etc/gitconfig

添加ssh pub

Profile Settings /SSH Keys

修改ssh端口22->xxx,如65520
gitlab_rails['gitlab_shell_ssh_port'] = 65520

3.新增邮箱通知

/etc/gitlab/gitlab.rb

 #Sending application email via SMTP
 gitlab_rails['smtp_enable'] = true
 gitlab_rails['smtp_address'] = "smtp.qiye.163.com"
 gitlab_rails['smtp_port'] = 25
 gitlab_rails['smtp_user_name'] = "yyy@xxx.com"
 gitlab_rails['smtp_password'] = "Aaq1w2e3r4"
 gitlab_rails['smtp_domain'] = "mail.xxx.com"
 gitlab_rails['smtp_authentication'] = "login"
 gitlab_rails['smtp_enable_starttls_auto'] = true


 #修改gitlab配置的发信人
 gitlab_rails['gitlab_email_from'] = "yyy@xxx.com"
 user["git_user_email"] = "yyy@xxx.com"

重启配置
gitlab-ctl reconfigure
gitlab-ctl restart

再设置通知邮箱。

posted @ 2016-11-15 17:38  南湖鹄  阅读(269)  评论(0编辑  收藏  举报