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
Modify ActionMailer configuration to default to ENV['LOCAL_DOMAIN'] if ENV['SMTP_DOMAIN'] is not set. The previous fallback, config.x.local_domain, is undefined when the code is called. (
#1745
)
closed-social-glitch-2
Effy Elden
7 years ago
committed by
Eugen
parent
7447e7a2ea
commit
c019b0acfd
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
config/environments/production.rb
+ 1
- 1
config/environments/production.rb
View File
@ -98,7 +98,7 @@ Rails.application.configure do
:address
=
>
ENV
[
'SMTP_SERVER'
]
,
:user_name
=
>
ENV
[
'SMTP_LOGIN'
]
,
:password
=
>
ENV
[
'SMTP_PASSWORD'
]
,
:domain
=
>
ENV
[
'SMTP_DOMAIN'
]
||
config
.
x
.
local_domain
,
:domain
=
>
ENV
[
'SMTP_DOMAIN'
]
||
ENV
[
'LOCAL_DOMAIN'
]
,
:authentication
=
>
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