mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 04:02:07 +01:00
Fix ENV
(#20377)
This commit is contained in:
parent
d4f973227c
commit
19a8563905
2 changed files with 2 additions and 2 deletions
|
@ -104,7 +104,7 @@ Rails.application.configure do
|
||||||
enable_starttls = nil
|
enable_starttls = nil
|
||||||
enable_starttls_auto = nil
|
enable_starttls_auto = nil
|
||||||
|
|
||||||
case env['SMTP_ENABLE_STARTTLS']
|
case ENV['SMTP_ENABLE_STARTTLS']
|
||||||
when 'always'
|
when 'always'
|
||||||
enable_starttls = true
|
enable_starttls = true
|
||||||
when 'never'
|
when 'never'
|
||||||
|
|
|
@ -326,7 +326,7 @@ namespace :mastodon do
|
||||||
when 'auto'
|
when 'auto'
|
||||||
enable_starttls_auto = true
|
enable_starttls_auto = true
|
||||||
else
|
else
|
||||||
enable_starttls_auto = ENV['SMTP_ENABLE_STARTTLS_AUTO'] != 'false'
|
enable_starttls_auto = env['SMTP_ENABLE_STARTTLS_AUTO'] != 'false'
|
||||||
end
|
end
|
||||||
|
|
||||||
ActionMailer::Base.smtp_settings = {
|
ActionMailer::Base.smtp_settings = {
|
||||||
|
|
Loading…
Reference in a new issue