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

lolsob-rspec
CSDUMMI 2023-03-14 14:47:57 +01:00 committed by GitHub
parent 2ab9cd15b1
commit ee757aadb6
1 changed files with 2 additions and 0 deletions

View File

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