|
@@ -62,20 +62,18 @@ Huginn::Application.configure do
|
|
|
# with SQLite, MySQL, and PostgreSQL)
|
|
|
# config.active_record.auto_explain_threshold_in_seconds = 0.5
|
|
|
|
|
|
- DOMAIN = 'www.yourdomain.com'
|
|
|
-
|
|
|
- config.action_mailer.default_url_options = { :host => DOMAIN }
|
|
|
- config.action_mailer.asset_host = DOMAIN
|
|
|
+ config.action_mailer.default_url_options = { :host => ENV['DOMAIN'] }
|
|
|
+ config.action_mailer.asset_host = ENV['DOMAIN']
|
|
|
config.action_mailer.perform_deliveries = true
|
|
|
config.action_mailer.raise_delivery_errors = true
|
|
|
config.action_mailer.delivery_method = :smtp
|
|
|
config.action_mailer.smtp_settings = {
|
|
|
address: "smtp.gmail.com",
|
|
|
port: 587,
|
|
|
- domain: "your-google-apps-domain.com",
|
|
|
+ domain: ENV['GOOGLE_APPS_DOMAIN'],
|
|
|
authentication: "plain",
|
|
|
enable_starttls_auto: true,
|
|
|
- user_name: "huginn@your-google-apps-domain.com",
|
|
|
- password: "your-password"
|
|
|
+ user_name: ENV['GMAIL_USERNAME'],
|
|
|
+ password: ENV['GMAIL_PASSWORD']
|
|
|
}
|
|
|
-end
|
|
|
+end
|