diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-04-25 17:09:32 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-04-25 17:09:32 +0200 |
commit | 002d2729fb342ec899d4322bbd64331da7d22a03 (patch) | |
tree | 2316623ed73758bd1d61477d94aee3492744933c /config/environments | |
parent | bb12af7250c9368905bae7d91c6ff0b06f3aa400 (diff) | |
parent | f47a9ddc9ffca22258ec9e4b12ca51db8cac1eac (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'config/environments')
-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 8d82a46f6..69f80667e 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) } if ENV['TRUSTED_PROXY_IP'].present? + config.action_dispatch.trusted_proxies = ENV['TRUSTED_PROXY_IP'].split(/(?:\s*,\s*|\s+)/).map { |item| IPAddr.new(item) } if ENV['TRUSTED_PROXY_IP'].present? config.force_ssl = true config.ssl_options = { |