In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "Linux system for Gitlab configuration email reminder method", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in-depth, together to study and learn "Linux system for Gitlab configuration email reminder method" it!
Gitlab email reminders make it easy to track the progress of the project. Here we introduce two ways: one is to send mail using the system's sendmail, and the other is to send mail using GMAIL's stmp.
The first one uses the sendmail of the system to send mail.
The code is as follows:
Cd / home/gitlab/gitlab/
Vi config/environments/production.rb
Put this line
The code is as follows:
# config.action_mailer.delivery_method =: sendmail
Change to
The code is as follows:
Config.action_mailer.delivery_method =: sendmail
Save
The code is as follows:
Config/environments/production.rb
Edit config/gitlab.yml
The code is as follows:
Vi config/gitlab.yml
Modify the configuration accordingly
The code is as follows:
Web:
Host: gitlab123.com
Port: 80
Https: false
Email:
From: notify@gitlab123.com
Protocol: http
Host: gitlab123.com
Git_host:
Host: gitlab123.com
Edit / etc/hosts
Add your ip corresponding to gitlab123.com
The code is as follows:
10.0.0.71 gitlab123.com
The second kind of stmp of GMAIL to send mail.
The code is as follows:
Cd / home/gitlab/gitlab/
Vi config/environments/production.rb
Add under # config.action_mailer.delivery_method =: sendmail
The code is as follows:
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
}
# configure your mailbox and password
Edit config/gitlab.yml
The code is as follows:
Vi config/gitlab.yml
Modify the configuration accordingly
The code is as follows:
Email:
From: account@gmail.com
Protocol: http
PS:gitlab configures Tencent enterprise mailbox
By default, gitlab cannot send confirmation email when registering with QQ Mail.
Next, let's talk about gitlab configuring Tencent enterprise mailbox.
The code is as follows:
# vim / etc/gitlab/gitlab.rb
Gitlab_rails ['smtp_enable'] = true
Gitlab_rails ['smtp_address'] = "smtp.exmail.qq.com"
Gitlab_rails ['smtp_port'] = 465
Gitlab_rails ['smtp_user_name'] = "support@ttlsa.com"
Gitlab_rails ['smtp_password'] = "www.ttlsa.com"
Gitlab_rails ['smtp_domain'] = "ttlsa.com"
Gitlab_rails ['smtp_authentication'] = "login"
Gitlab_rails ['smtp_enable_starttls_auto'] = true
Gitlab_rails ['smtp_tls'] = true
Gitlab_rails ['gitlab_email_from'] = "support@ttlsa.com"
Reload configuration
The code is as follows:
# gitlab-ctl reconfigure
Thank you for reading, the above is the content of "the method of configuring email reminders for Gitlab under the Linux system". After the study of this article, I believe you have a deeper understanding of the method of configuring email reminders for Gitlab under the Linux system, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.