gitlab邮箱验证 邮箱提醒设置
2024-08-24 17:43:00
Gitlab邮件提醒方便跟踪项目进度,在这里介绍两种方式,一种是用系统的sendmail发送邮件,另一种是GMAIL的stmp来发送邮件
第一种 用系统的sendmail发送邮件
cd /home/gitlab/gitlab/
vi config/environments/production.rb
将这行 # config.action_mailer.delivery_method = :sendmail
改为 config.action_mailer.delivery_method = :sendmail
保存config/environments/production.rb
编辑config/gitlab.yml
vi config/gitlab.yml
对应修改一下配置
web:
host: gitlab123.com
port: 80
https: false
email:
from: notify@gitlab123.com
protocol: http
host: gitlab123.com
git_host:
host: gitlab123.com
编辑/etc/hosts
加入你的ip对应gitlab123.com
10.0.0.71 gitlab123.com
第二种 GMAIL的stmp来发送邮件
cd /home/gitlab/gitlab/
vi config/environments/production.rb
在# config.action_mailer.delivery_method = :sendmail下加入
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => 'gmail.com',
:user_name => 'account@gmail.com',
:password => 'password',
:authentication => :plain,
:enable_starttls_auto => true
}
#配置好你的邮箱和密码
编辑config/gitlab.yml
vi config/gitlab.yml
对应修改一下配置
email:
from: account@gmail.com
protocol: http
最新文章
- 使用C#处理基于比特流的数据
- MVC Controller中View(model)如何在 View中的index页面获得?
- WinForm控件TreeView 只部分节点显示 CheckBox
- 使用JDBC访问SQLServer 2008
- Python SyntaxError: Non-ASCII character '\xe5'
- canvas个人总结
- 网易云课堂_艾叔:零基础一站式C语言|C程序设计精讲_章节12:指针
- SetThreadAffinityMask设置线程亲缘性
- KB奇遇记(3):IT现状
- 基于QEMU的ARM Cortex-A9开发板Vexpress-ca9的Linux内核的编译和运行
- C# Split 根据组合字符进行拆分数组用法
- 浅谈RMQ
- Spark环境搭建(七)-----------spark的Local和standalone模式启动
- 第五章 服务容错保护:Spring Cloud Hystrix
- C# 实现CRC16校验
- React Native 教程:001 - 如何运行官方控件示例 App
- Linux shell中处理
- 【译】第9节---EF Code First中数据注解
- C#中三层架构UI、BLL、DAL、Model实际操作
- iOS设计模式-原型模式