mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-02 03:27:54 +00:00
Add PROXY protocol support (#3098)
This commit is contained in:
@@ -60,8 +60,10 @@ func DevConfig(ha, transactional bool) *Config {
|
||||
&Listener{
|
||||
Type: "tcp",
|
||||
Config: map[string]interface{}{
|
||||
"address": "127.0.0.1:8200",
|
||||
"tls_disable": "1",
|
||||
"address": "127.0.0.1:8200",
|
||||
"tls_disable": true,
|
||||
"proxy_protocol_behavior": "allow_authorized",
|
||||
"proxy_protocol_authorized_addrs": "127.0.0.1:8200",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -666,6 +668,8 @@ func parseListeners(result *Config, list *ast.ObjectList) error {
|
||||
"endpoint",
|
||||
"infrastructure",
|
||||
"node_id",
|
||||
"proxy_protocol_behavior",
|
||||
"proxy_protocol_authorized_addrs",
|
||||
"tls_disable",
|
||||
"tls_cert_file",
|
||||
"tls_key_file",
|
||||
|
||||
Reference in New Issue
Block a user