Merge pull request #6902 from adullact/feature/6860-custom-app-host
Rend l'environnement de développement accessible depuis un hôte autre que localhost:3000
This commit is contained in:
commit
2746c2dedf
1 changed files with 6 additions and 7 deletions
|
@ -77,15 +77,12 @@ Rails.application.configure do
|
|||
# Action Mailer settings
|
||||
config.action_mailer.delivery_method = :letter_opener
|
||||
|
||||
config.action_mailer.default_url_options = {
|
||||
host: 'localhost',
|
||||
port: 3000
|
||||
}
|
||||
config.action_mailer.asset_host = "http://" + ENV['APP_HOST']
|
||||
config.action_mailer.default_url_options = { host: ENV.fetch("APP_HOST") }
|
||||
config.action_mailer.asset_host = "http://" + ENV.fetch("APP_HOST")
|
||||
|
||||
Rails.application.routes.default_url_options = {
|
||||
host: 'localhost',
|
||||
port: 3000
|
||||
host: ENV.fetch("APP_HOST"),
|
||||
protocol: :http
|
||||
}
|
||||
|
||||
# Use Content-Security-Policy-Report-Only headers
|
||||
|
@ -111,4 +108,6 @@ Rails.application.configure do
|
|||
if ENV['IGN_CARTE_REFERER']
|
||||
config.hosts << ENV['IGN_CARTE_REFERER']
|
||||
end
|
||||
|
||||
config.hosts << ENV.fetch("APP_HOST")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue