diff options
author | aus-social <42644106+aus-social@users.noreply.github.com> | 2018-10-05 01:38:04 +1000 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-10-04 17:38:04 +0200 |
commit | 0a4739c7324a96cee148373ccc7b57b9c7097b42 (patch) | |
tree | 8c6681e31fdab9b090c7a33105171460e31d5217 /config/environments/production.rb | |
parent | a46ab86adfc9e4ea182af9a555237f17071e194c (diff) |
lint pass 2 (#8878)
* Code quality pass
* Typofix
* Update applications_controller_spec.rb
* Update applications_controller_spec.rb
Diffstat (limited to 'config/environments/production.rb')
-rw-r--r-- | config/environments/production.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb index 30239671c08..ed2d885b063 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -42,7 +42,7 @@ Rails.application.configure do config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX # Allow to specify public IP of reverse proxy if it's needed - config.action_dispatch.trusted_proxies = ENV['TRUSTED_PROXY_IP'].split.map { |item| IPAddr.new(item) } unless ENV['TRUSTED_PROXY_IP'].blank? + config.action_dispatch.trusted_proxies = ENV['TRUSTED_PROXY_IP'].split.map { |item| IPAddr.new(item) } if ENV['TRUSTED_PROXY_IP'].present? # Use the lowest log level to ensure availability of diagnostic information # when problems arise. |