// /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 =>"nianxiongdi1231@163.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 443if using HTTPS, see installation.md#using-https for additional HTTPS configuration details
https:false # Set to trueif using HTTPS, see installation.md#using-https for additional HTTPS configuration details
# Uncommment this line below if your ssh host is different fromHTTP/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 falseif you need to disable email sending fromGitLab(default:true)
email_enabled:true
# Email address used in the "From" field in mails sent by GitLab
email_from: nianxiongdi1231@163.com
email_display_name: GitLab
email_reply_to: nianxiongdi1231@163.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:"nianxiongdi1231@163.com",
password:"",
domain:"163.com",
authentication::plain,
enable_starttls_auto:true,
openssl_verify_mode:'none' # See ActionMailer documentation for other possible options
}
end