diff --git a/config/environments/production.rb b/config/environments/production.rb index bc267278..7901720c 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -72,11 +72,11 @@ Osem::Application.configure do # Set the smtp configuration of your service provider # For further details of each configuration checkout: http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration config.action_mailer.smtp_settings = { - address: CONFIG['MAIL_ADDRESS'], - port: CONFIG['MAIL_PORT'], - user_name: CONFIG['MAIL_USERNAME'], - password: CONFIG['MAIL_PASSWORD'], - authentication: CONFIG['MAIL_AUTHENTICATION'] + address: ENV['OSEM_SMTP_ADDRESS'], + port: ENV['OSEM_SMTP_PORT'], + user_name: ENV['OSEM_SMTP_USERNAME'], + password: ENV['OSEM_SMTP_PASSWORD'], + authentication: ENV['OSEM_SMTP_AUTHENTICATION'] } # Set the secret_key_base from the env, if not set by any other means diff --git a/dotenv.example b/dotenv.example index bee645ee..51ea5be5 100644 --- a/dotenv.example +++ b/dotenv.example @@ -41,6 +41,13 @@ OSEM_GITHUB_SECRET='' # Speeds up turn around times of tests OSEM_FACTORY_LINT="false" +# The smtp configuration. See the rails guides for more +# http://guides.rubyonrails.org/action_mailer_basics.html#action-mailer-configuration +OSEM_SMTP_ADDRESS="" +OSEM_SMTP_PORT="" +OSEM_SMTP_USERNAME="" +OSEM_SMTP_PASSWORD="" +OSEM_SMTP_AUTHENTICATION="" # Enable the usage of the devise ichain plugin OSEM_ICHAIN_ENABLED=false