Skip to content

Commit

Permalink
Expose the rest of Action Mailer's config
Browse files Browse the repository at this point in the history
  • Loading branch information
strugee committed Aug 16, 2024
1 parent e5122f2 commit a5b4894
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,12 @@
password: ENV.fetch('OSEM_SMTP_PASSWORD', nil),
authentication: ENV.fetch('OSEM_SMTP_AUTHENTICATION', 'plain').try(:to_sym),
domain: ENV.fetch('OSEM_SMTP_DOMAIN', nil),
enable_starttls: ENV.fetch('OSEM_SMTP_ENABLE_STARTTLS', nil),
enable_starttls_auto: ENV.fetch('OSEM_SMTP_ENABLE_STARTTLS_AUTO', nil),
openssl_verify_mode: ENV.fetch('OSEM_SMTP_OPENSSL_VERIFY_MODE', nil)
openssl_verify_mode: ENV.fetch('OSEM_SMTP_OPENSSL_VERIFY_MODE', nil),
tls: ENV['OSEM_SMTP_TLS'].present?,
open_timeout: ENV.fetch('OSEM_SMTP_OPEN_TIMEOUT', nil),
read_timeout: ENV.fetch('OSEM_SMTP_READ_TIMEOUT', nil)
}.compact

# Use memcache cluster as cache store in production
Expand Down
2 changes: 2 additions & 0 deletions dotenv.example
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,10 @@
# OSEM_SMTP_USERNAME=user1
# OSEM_SMTP_PASSWORD=password123
# OSEM_SMTP_AUTHENTICATION=plain
# OSEM_SMTP_ENABLE_STARTTLS=false
# OSEM_SMTP_ENABLE_STARTTLS_AUTO=true
# OSEM_SMTP_OPENSSL_VERIFY_MODE=peer
# OSEM_SMTP_TLS=false

# Enable the usage of the devise ichain plugin
# OSEM_ICHAIN_ENABLED=false
Expand Down

0 comments on commit a5b4894

Please sign in to comment.