mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Fix domain in development and production
This commit is contained in:
parent
49d1e7014b
commit
f5c399a8cc
2 changed files with 2 additions and 2 deletions
|
|
@ -88,7 +88,7 @@ Rails.application.configure do
|
||||||
|
|
||||||
hosts = ENV.fetch('APPLICATION_HOSTS', 'localhost').split(',')
|
hosts = ENV.fetch('APPLICATION_HOSTS', 'localhost').split(',')
|
||||||
|
|
||||||
config.action_mailer.default_url_options = { host: ENV['SMTP_DOMAIN'] || hosts.first, port: ENV.fetch('PORT', 3000) }
|
config.action_mailer.default_url_options = { host: ENV['DOMAIN'] || hosts.first, port: ENV.fetch('PORT', 3000) }
|
||||||
|
|
||||||
config.hosts.concat(hosts) if hosts.present?
|
config.hosts.concat(hosts) if hosts.present?
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ Rails.application.configure do
|
||||||
config.host_authorization = { exclude: ->(request) { request.path == "/api/v1/health" } }
|
config.host_authorization = { exclude: ->(request) { request.path == "/api/v1/health" } }
|
||||||
hosts = ENV.fetch('APPLICATION_HOSTS', 'localhost').split(',')
|
hosts = ENV.fetch('APPLICATION_HOSTS', 'localhost').split(',')
|
||||||
|
|
||||||
config.action_mailer.default_url_options = { host: ENV['SMTP_DOMAIN'] }
|
config.action_mailer.default_url_options = { host: ENV['DOMAIN'] }
|
||||||
config.hosts.concat(hosts) if hosts.present?
|
config.hosts.concat(hosts) if hosts.present?
|
||||||
|
|
||||||
config.action_mailer.delivery_method = :smtp
|
config.action_mailer.delivery_method = :smtp
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue