feat: configurable trusted proxies for web requests

This commit is contained in:
Adam Cooke
2024-03-05 22:54:19 +00:00
parent 9bf6152060
commit 3785c99851
4 changed files with 16 additions and 12 deletions
+6
View File
@@ -84,6 +84,12 @@ module Postal
}
end
end
string :trusted_proxies do
array
description "An array of IP addresses to trust for proxying requests to Postal (in addition to localhost addresses)"
transform { |ip| IPAddr.new(ip) }
end
end
group :web_server do