mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
Merge pull request #1951 from internetee/add-syslog-to-staging
Add syslog support to staging.rb
This commit is contained in:
commit
41cc92915e
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
|
||||
|
|
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