mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 01:36:02 +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
|
# Not supported by `paper_trail` gem < 5.0
|
||||||
# https://github.com/paper-trail-gem/paper_trail/issues/682
|
# https://github.com/paper-trail-gem/paper_trail/issues/682
|
||||||
config.active_record.belongs_to_required_by_default = false
|
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
|
||||||
end
|
end
|
||||||
|
|
6
config/environments/staging.rb
Normal file
6
config/environments/staging.rb
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
Rails.application.configure do
|
||||||
|
# Settings specified here will take precedence over those in config/application.rb.
|
||||||
|
|
||||||
|
require 'syslog/logger'
|
||||||
|
config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new(ENV['app_name'] || 'registry'))
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue