Add PROXY protocol support (#3098)

This commit is contained in:
Jeff Mitchell
2017-08-02 18:24:12 -04:00
committed by GitHub
parent d6fc971726
commit 608322b546
29 changed files with 5602 additions and 2 deletions

View File

@@ -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",