mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Update production environment
This commit is contained in:
parent
e2f1b2a26c
commit
1476816418
1 changed files with 3 additions and 3 deletions
|
|
@ -103,8 +103,8 @@ Rails.application.configure do
|
||||||
# ]
|
# ]
|
||||||
# Skip DNS rebinding protection for the default health check endpoint.
|
# Skip DNS rebinding protection for the default health check endpoint.
|
||||||
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
|
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
|
||||||
config.hosts << ENV.fetch('APPLICATION_HOST', 'localhost')
|
hosts = ENV.fetch('APPLICATION_HOSTS', 'localhost').split(',')
|
||||||
|
|
||||||
hosts = ENV.fetch('APPLICATION_HOSTS', 'localhost')
|
config.action_mailer.default_url_options = { host: hosts.first, port: 3000 }
|
||||||
config.hosts.concat(hosts.split(',')) if hosts.present?
|
config.hosts.concat(hosts) if hosts.present?
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue