Updated smtp env variables

This commit is contained in:
Priit Tark 2015-05-14 11:15:21 +03:00
parent 6476c7c805
commit ec70d1ab21
3 changed files with 18 additions and 11 deletions

View file

@ -1,3 +1,7 @@
14.05.2015
* Changed and added some new smtp enviroment variables. More info at application-example.yml
12.05.2015
* Ruby version updated to 2.2.2

View file

@ -37,11 +37,13 @@ epp_hostname: 'registry.gitlab.eu'
repp_url: 'https://repp.gitlab.eu/repp/v1/'
# SMTP configuration
address: 'server-hostname'
port: '000'
user_name: 'login'
password: 'pw/key'
domain: 'domain for HELO checking'
smtp_address: 'server-hostname'
smtp_port: '000'
smtp_user_name: 'login'
smtp_password: 'pw/key'
smtp_domain: 'domain for HELO checking'
# Use "none" only when for a self-signed and/or wildcard certificate
smtp_openssl_verify_mode: 'peer' # 'none', 'peer', 'client_once','fail_if_no_peer_cert'
# autotest config overwrites
test:

View file

@ -59,13 +59,14 @@ module Registry
config.action_mailer.raise_delivery_errors = true
config.action_mailer.smtp_settings = {
address: ENV['address'],
port: ENV['port'],
address: ENV['smtp_address'],
port: ENV['smtp_port'],
enable_starttls_auto: true,
user_name: ENV['user_name'],
password: ENV['password'],
authentication: 'login',
domain: ENV['domain']
user_name: ENV['smtp_user_name'],
password: ENV['smtp_password'],
authentication: 'smtp_login',
domain: ENV['smtp_domain']
openssl_verify_mode: ENV['smtp_openssl_verify_mode']
}
end
end