Browse Source

Support the PROXY protocol through the PROXY_PROTO_V1 env variable (#24064)

closed-social-glitch-2
CSDUMMI 1 year ago
committed by GitHub
parent
commit
5dee40b5f5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      config/puma.rb

+ 2
- 0
config/puma.rb View File

@ -22,3 +22,5 @@ on_worker_boot do
end
plugin :tmp_restart
set_remote_address(proxy_protocol: :v1) if ENV['PROXY_PROTO_V1'] == 'true'

Loading…
Cancel
Save