gitlab-8.7.4 One-click Automatic installation and email notification Configuration Reference Example

Source: Internet
Author: User
Tags ssl connection

[Email protected] ~]#./bitnami-gitlab-8.7.4-0-linux-x64-installer.run

The installer detects that exists a ' git ' user in the system. This installer would change the config uration for this user. Want to continue the installation? [y/n]: Y

The installer detects that exists a ' gitlab_ci ' user in the system. This installer would change the configuration for this user. Want to continue the installation? [y/n]: Y

----------------------------------------------------------------------------

Welcome to the Bitnami Gitlab Stack Setup Wizard.

----------------------------------------------------------------------------

Select the components of your want to install; Clear the components does not want

To install. Click Next When your is ready to continue.

Gitlab:y (cannot be edited)

GitLab CI [y/n]: Y

Is the selection above correct? [y/n]: Y

----------------------------------------------------------------------------

installation folder

Please, choose a folder to install Bitnami Gitlab Stack

Select a folder [/opt/gitlab-8.7.4-0]:

----------------------------------------------------------------------------

Create Admin Account

Bitnami Gitlab Stack Admin user creation

email Address [[email protected]: [email protected]

Login [user]: Master

password:88888888

Please confirm your password:88888888

----------------------------------------------------------------------------

Hostname that'll be used to create internal URLs. If This value is incorrect,

You are unable to access your Gitlab installation from other computers. It is

advisable to use a Domain instead of the IP address for compatibility with

Different browsers.

Domain [192.168.82.181]:

Do you want to configure mail support? [y/n]: Y

----------------------------------------------------------------------------

Configure SMTP Settings

This was required so your application can send notifications via email.

Default Email provider:

[1] GMail

[2] Custom

Choose an option [1]: 2

----------------------------------------------------------------------------

Configure SMTP Settings

This data was stored in the application configuration files and could be visible to

Others. For this reason, it's recommended that and do not use your personal

Account credentials.

Username []: [Email protected]

Password:

Re-enter:

SMTP Host []: smtp.163.com

SMTP Port []: 25

Secure Connection

[1] None

[2] SSL

[3] TLS

Choose an option [3]: 3

----------------------------------------------------------------------------

Setup is now the ready to begin installing Bitnami Gitlab Stack on your computer.

Want to continue? [y/n]: Y

----------------------------------------------------------------------------

Please wait while the Setup installs Bitnami Gitlab Stack on your computer.

Installing

0% ______________ 50% ______________ 100%

#########################################


Configure Email Notifications! "Use Postfix, if you have SendMail installed, deactivate or uninstall"

[email protected] ~]# Yum install postfix

[[Email protected] ~]# service postfix start

To test whether a message can be sent:

[Email protected] ~]# echo "Test Gitlab mail from postfix" | Mail-s "Test Postfix" [email protected]


[Email protected] gitlab-8.7.4-0]# pwd

/opt/gitlab-8.7.4-0

To view and confirm the message information that is set up during installation:

[Email protected] gitlab-8.7.4-0]# vim APPS/GITLAB/HTDOCS/CONFIG/ENVIRONMENTS/PRODUCTION.RB

Config.action_mailer.perform_deliveries = True

Config.action_mailer.raise_delivery_errors = True

Config.action_mailer.delivery_method =: SMTP

Config.action_mailer.smtp_settings = {

81:address = "Smtp.163.com",

:p ort = "25",

:d omain "Smtp.163.com",

84:authentication =:p Lain,

85:user_name = "[email protected]",

:p assword = "***********",

87:enable_starttls_auto = True

88}

Config.eager_load = True

Config.allow_concurrency = False

End


To modify a configuration file:

[Email protected] gitlab-8.7.4-0]# CD apps/gitlab/htdocs/config/initializers/

[email protected] gitlab-8.7.4-0]# CP smtp_settings.rb.sample SMTP_SETTINGS.RB

[Email protected] gitlab-8.7.4-0]# vim SMTP_SETTINGS.RB

If Rails.env.production?

Rails.application.config.action_mailer.delivery_method =: SMTP

12

Actionmailer::base.smtp_settings = {

Address: "Smtp.163.com", #

Port:25

USER_NAME: "[email protected]", #

Password: "***********",

: "Gitlab.test.com", # Custom can

Authentication:: Login,

Enable_starttls_auto:true,

# Openssl_verify_mode: ' Peer '

22}


[Email protected] gitlab-8.7.4-0]# vim apps/gitlab/htdocs/config/gitlab.yml

host:192.168.152.14 #默认为IP地址, you can also specify a domain name

port:443 #默认80, turn on SSL connection

Https:true #默认为false whether to enable HTTPS, set here to enable


Email_from: [email protected] #从哪个地址发送, must be consistent with previous settings

Email_display_name:test_git #自定义, feel free to set

email_reply_to [email protected] #回复的地址


[[email protected] gitlab-8.7.4-0]#./ctlscript.sh Restart Restart Service!




This article is from the "Xiao Feng Network" blog, please be sure to keep this source http://jie1215.blog.51cto.com/2183736/1775009

gitlab-8.7.4 One-click Automatic installation and email notification Configuration Reference Example

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.