diff options
author | CSDUMMI <31551856+CSDUMMI@users.noreply.github.com> | 2023-03-14 14:47:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-14 14:47:57 +0100 |
commit | 5dee40b5f5582c2b3dbf60b61e667312ebc54940 (patch) | |
tree | 7fa5d5c579bb28763123100308bf8b4b087e24f0 | |
parent | 43ec9d24f935d6d1858a7c96f33815c51860e988 (diff) |
Support the PROXY protocol through the PROXY_PROTO_V1 env variable (#24064)
-rw-r--r-- | config/puma.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/puma.rb b/config/puma.rb index e59295445..c4e2b0b85 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -22,3 +22,5 @@ on_worker_boot do end plugin :tmp_restart + +set_remote_address(proxy_protocol: :v1) if ENV['PROXY_PROTO_V1'] == 'true' |