This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Send nil for SMTP_LOGIN or SMTP_PASSWORD if it was left blank in the envfile, otherwise Ruby still attempts auth even if SMTP_AUTH_METHOD is none (
#2180
)
closed-social-glitch-2
Miguel Jacq
7 years ago
committed by
Eugen
parent
59a77923b3
commit
b79ba3db8a
1 changed files
with
2 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-4
config/environments/production.rb
+ 2
- 4
config/environments/production.rb
View File
@ -98,12 +98,10 @@ Rails.application.configure do
config
.
action_mailer
.
smtp_settings
=
{
:port
=
>
ENV
[
'SMTP_PORT'
]
,
:address
=
>
ENV
[
'SMTP_SERVER'
]
,
:user_name
=
>
ENV
[
'SMTP_LOGIN'
]
,
:password
=
>
ENV
[
'SMTP_PASSWORD'
]
,
:user_name
=
>
ENV
[
'SMTP_LOGIN'
]
.
presence
,
:password
=
>
ENV
[
'SMTP_PASSWORD'
]
.
presence
,
:domain
=
>
ENV
[
'SMTP_DOMAIN'
]
||
ENV
[
'LOCAL_DOMAIN'
]
,
:authentication
=
>
ENV
[
'SMTP_AUTH_METHOD'
]
==
'none'
?
nil
:
ENV
[
'SMTP_AUTH_METHOD'
]
||
:plain
,
:openssl_verify_mode
=
>
ENV
[
'SMTP_OPENSSL_VERIFY_MODE'
]
,
:enable_starttls_auto
=
>
ENV
[
'SMTP_ENABLE_STARTTLS_AUTO'
]
||
true
,
}
Write
Preview
Loading…
Cancel
Save