Moved SMTP settings to environment variables.
This commit is contained in:
@@ -37,12 +37,12 @@ Redstoner::Application.configure do
|
|||||||
}
|
}
|
||||||
|
|
||||||
config.action_mailer.smtp_settings = {
|
config.action_mailer.smtp_settings = {
|
||||||
address: "smtp.gmail.com",
|
address: ENV["SMTP_ADDRESS"],
|
||||||
port: 587,
|
port: ENV["SMTP_PORT"],
|
||||||
domain: "google.com",
|
domain: "redstoner.com",
|
||||||
authentication: "plain",
|
authentication: ENV["SMTP_AUTH"],
|
||||||
user_name: "redstonerserver@gmail.com",
|
user_name: ENV["SMTP_USERNAME"],
|
||||||
password: ENV["GMAIL_PASSWORD"],
|
password: ENV["SMTP_PASSWORD"],
|
||||||
}
|
}
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -71,12 +71,12 @@ Redstoner::Application.configure do
|
|||||||
}
|
}
|
||||||
|
|
||||||
config.action_mailer.smtp_settings = {
|
config.action_mailer.smtp_settings = {
|
||||||
address: "smtp.gmail.com",
|
address: ENV["SMTP_ADDRESS"],
|
||||||
port: 587,
|
port: ENV["SMTP_PORT"],
|
||||||
domain: "google.com",
|
domain: "redstoner.com",
|
||||||
authentication: "plain",
|
authentication: ENV["SMTP_AUTH"],
|
||||||
user_name: "redstonerserver@gmail.com",
|
user_name: ENV["SMTP_USERNAME"],
|
||||||
password: ENV["GMAIL_PASSWORD"],
|
password: ENV["SMTP_PASSWORD"],
|
||||||
}
|
}
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user