ubuntu搭建gitllab服务器
程序员文章站
2022-04-19 16:06:25
...
效果图
如何搭建
- 安装ubuntu
- 安装gitlab
- 配置邮箱
配置邮箱
// /opt/gitlab-8.5.1-0/apps/gitlab/htdocs/config/environments
config.action_mailer.smtp_settings = {
:addres => "smtp.163.com",
:port => "25",
:domain => "163.com",
:authentication => :login,
:user_name => "aaa@qq.com",
:password => "",
#:openssl_verify_mode => 'none',
:enable_starttls_auto => true
}
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
// /opt/gitlab-8.5.1-0/apps/gitlab/htdocs/config/gitlab.yml
## Web server settings (note: host is the FQDN, do not include http://)
host: 192.1.1.230
port: 80 # Set to 443 if using HTTPS, see installation.md#using-https for additional HTTPS configuration details
https: false # Set to true if using HTTPS, see installation.md#using-https for additional HTTPS configuration details
# Uncommment this line below if your ssh host is different from HTTP/HTTPS one
# (you'd obviously need to replace ssh.host_example.com with your own host).
# Otherwise, ssh host will be set to the `host:` value above
# ssh_host: ssh.host_example.com
# Relative URL support
# WARNING: We recommend using an FQDN to host GitLab in a root path instead
# of using a relative URL.
# Documentation: http://doc.gitlab.com/ce/install/relative_url.html
# Uncomment and customize the following line to run in a non-root path
#
# relative_url_root: /gitlab
# Uncomment and customize if you can't use the default user to run GitLab (default: 'git')
# user: git
## Date & Time settings
# Uncomment and customize if you want to change the default time zone of GitLab application.
# To see all available zones, run `bundle exec rake time:zones:all RAILS_ENV=production`
# time_zone: 'UTC'
## Email settings
# Uncomment and set to false if you need to disable email sending from GitLab (default: true)
email_enabled: true
# Email address used in the "From" field in mails sent by GitLab
email_from: aaa@qq.com163.com
email_display_name: GitLab
email_reply_to: aaa@qq.com163.com
// /opt/gitlab-8.5.1-0/apps/gitlab/htdocs/config/initializers/smtp_settings.rb
# To enable smtp email delivery for your GitLab instance do the following:
# 1. Rename this file to smtp_settings.rb
# 2. Edit settings inside this file
# 3. Restart GitLab instance
#
# For full list of options and their values see http://api.rubyonrails.org/classes/ActionMailer/Base.html
#
# If you change this file in a Merge Request, please also create a Merge Request on https://gitlab.com/gitlab-org/omnibus-gitlab/merge_requests
if Rails.env.production?
Rails.application.config.action_mailer.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
address: "smtp.163.com",
port: 25,
user_name: "aaa@qq.com",
password: "",
domain: "163.com",
authentication: :plain,
enable_starttls_auto: true,
openssl_verify_mode: 'none' # See ActionMailer documentation for other possible options
}
end
推荐阅读
-
在CentOS上安装搭建PHP+Apache+Mysql的服务器环境
-
Ubuntu16.04搭建php5.6Web服务器环境
-
javaWeb使用servlet搭建服务器入门
-
图文详解Ubuntu搭建Ftp服务器的方法(包成功)
-
老司机传授Ubuntu下Apache+PHP+MySQL环境搭建攻略
-
win10怎么搭建web服务器 win10搭建web服务器的方法
-
搭建简单的nodejs http服务器详解
-
阿里云服务器ECS上ubuntu安装nginx后默认站点页面打开错误,显示无法访问此网站
-
Nginx搭建HTTPS服务器和强制使用HTTPS访问的方法
-
Android 快速搭建FTP服务器的方法