mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
Add staging config file & trusted proxies for all application
This commit is contained in:
parent
7957d71be7
commit
49e08f5e21
2 changed files with 8 additions and 0 deletions
|
@ -94,5 +94,7 @@ module DomainNameRegistry
|
|||
# Not supported by `paper_trail` gem < 5.0
|
||||
# https://github.com/paper-trail-gem/paper_trail/issues/682
|
||||
config.active_record.belongs_to_required_by_default = false
|
||||
|
||||
config.action_dispatch.trusted_proxies = %w(127.0.0.1/32).map { |proxy| IPAddr.new(proxy) }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue