summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLogan Fick <logaldeveloper@protonmail.com>2018-04-21 11:52:21 -0400
committerLogan Fick <logaldeveloper@protonmail.com>2018-04-21 11:52:21 -0400
commite9f46813ded613253f8a58f9fc82e7617c37d4ca (patch)
tree1b168016c5694f931cde665af4643d3527de61ea /config
parent14dfc4c1cd3aa152e79d430c8cad8460c111fa5f (diff)
Moved SMTP settings to environment variables.
Diffstat (limited to 'config')
-rw-r--r--config/environments/development.rb12
-rw-r--r--config/environments/production.rb12
2 files changed, 12 insertions, 12 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index bfa0c96..7f2ae37 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -37,12 +37,12 @@ Redstoner::Application.configure do
}
config.action_mailer.smtp_settings = {
- address: "smtp.gmail.com",
- port: 587,
- domain: "google.com",
- authentication: "plain",
- user_name: "redstonerserver@gmail.com",
- password: ENV["GMAIL_PASSWORD"],
+ address: ENV["SMTP_ADDRESS"],
+ port: ENV["SMTP_PORT"],
+ domain: "redstoner.com",
+ authentication: ENV["SMTP_AUTH"],
+ user_name: ENV["SMTP_USERNAME"],
+ password: ENV["SMTP_PASSWORD"],
}
end
diff --git a/config/environments/production.rb b/config/environments/production.rb
index 257ea31..338dd3f 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -71,12 +71,12 @@ Redstoner::Application.configure do
}
config.action_mailer.smtp_settings = {
- address: "smtp.gmail.com",
- port: 587,
- domain: "google.com",
- authentication: "plain",
- user_name: "redstonerserver@gmail.com",
- password: ENV["GMAIL_PASSWORD"],
+ address: ENV["SMTP_ADDRESS"],
+ port: ENV["SMTP_PORT"],
+ domain: "redstoner.com",
+ authentication: ENV["SMTP_AUTH"],
+ user_name: ENV["SMTP_USERNAME"],
+ password: ENV["SMTP_PASSWORD"],
}
end