about summary refs log tree commit diff
path: root/config/environments
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2022-11-28 16:41:29 -0600
committerStarfall <us@starfall.systems>2022-11-28 16:41:29 -0600
commitcb9dad90b01c9f53d1910cf128eb22200bdb9884 (patch)
tree1935d74f49853ed371e36cfac2d44ac33d2e8a2e /config/environments
parentc3c3b6953f37462f26f011b6c6cbd1655d5dcbea (diff)
parent1a7aa37b60769a10077c585fa76ec848b6866d9a (diff)
Merge remote-tracking branch 'glitch/main'
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/production.rb24
1 files changed, 12 insertions, 12 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index fedfe5efb..a7540c12e 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -112,18 +112,18 @@ Rails.application.configure do
   end
 
   config.action_mailer.smtp_settings = {
-    :port                 => ENV['SMTP_PORT'],
-    :address              => ENV['SMTP_SERVER'],
-    :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,
-    :ca_file              => ENV['SMTP_CA_FILE'].presence || '/etc/ssl/certs/ca-certificates.crt',
-    :openssl_verify_mode  => ENV['SMTP_OPENSSL_VERIFY_MODE'],
-    :enable_starttls      => enable_starttls,
-    :enable_starttls_auto => enable_starttls_auto,
-    :tls                  => ENV['SMTP_TLS'].presence && ENV['SMTP_TLS'] == 'true',
-    :ssl                  => ENV['SMTP_SSL'].presence && ENV['SMTP_SSL'] == 'true',
+    port: ENV['SMTP_PORT'],
+    address: ENV['SMTP_SERVER'],
+    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,
+    ca_file: ENV['SMTP_CA_FILE'].presence || '/etc/ssl/certs/ca-certificates.crt',
+    openssl_verify_mode: ENV['SMTP_OPENSSL_VERIFY_MODE'],
+    enable_starttls: enable_starttls,
+    enable_starttls_auto: enable_starttls_auto,
+    tls: ENV['SMTP_TLS'].presence && ENV['SMTP_TLS'] == 'true',
+    ssl: ENV['SMTP_SSL'].presence && ENV['SMTP_SSL'] == 'true',
   }
 
   config.action_mailer.delivery_method = ENV.fetch('SMTP_DELIVERY_METHOD', 'smtp').to_sym