about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorCSDUMMI <31551856+CSDUMMI@users.noreply.github.com>2023-03-14 14:47:57 +0100
committerGitHub <noreply@github.com>2023-03-14 14:47:57 +0100
commit5dee40b5f5582c2b3dbf60b61e667312ebc54940 (patch)
tree7fa5d5c579bb28763123100308bf8b4b087e24f0 /config
parent43ec9d24f935d6d1858a7c96f33815c51860e988 (diff)
Support the PROXY protocol through the PROXY_PROTO_V1 env variable (#24064)
Diffstat (limited to 'config')
-rw-r--r--config/puma.rb2
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'