int listen_backlog;
int rsync_port;
- BOOL haproxy_header;
+ BOOL proxy_protocol;
} global_vars;
/* This structure describes a single section. Their order must match the
/* listen_backlog; */ 5,
/* rsync_port; */ 0,
- /* haproxy_header; */ False,
+ /* proxy_protocol; */ False,
},
/* ==== local_vars ==== */
{"motd file", P_STRING, P_GLOBAL,&Vars.g.motd_file, NULL,0},
{"pid file", P_STRING, P_GLOBAL,&Vars.g.pid_file, NULL,0},
{"port", P_INTEGER,P_GLOBAL,&Vars.g.rsync_port, NULL,0},
+ {"proxy protocol", P_BOOL, P_LOCAL, &Vars.g.proxy_protocol, NULL,0},
{"socket options", P_STRING, P_GLOBAL,&Vars.g.socket_options, NULL,0},
- {"haproxy header", P_BOOL, P_LOCAL, &Vars.g.haproxy_header, NULL,0},
{"auth users", P_STRING, P_LOCAL, &Vars.l.auth_users, NULL,0},
{"charset", P_STRING, P_LOCAL, &Vars.l.charset, NULL,0},
FN_GLOBAL_INTEGER(lp_listen_backlog, listen_backlog)
FN_GLOBAL_INTEGER(lp_rsync_port, rsync_port)
-FN_GLOBAL_BOOL(lp_haproxy_header, haproxy_header)
+FN_GLOBAL_BOOL(lp_proxy_protocol, proxy_protocol)
FN_LOCAL_STRING(lp_auth_users, auth_users)
FN_LOCAL_STRING(lp_charset, charset)
This script also supports a `--type=gnutls` option, but at the time of this
release the gnutls-cli command was dropping output, making it unusable. If
-that bug has been fixed in your version, feel free to put gnutls into the
-RSYNC_SSL_TYPE environment variable if you want to make its use the default.
+that bug has been fixed in your version, feel free to put gnutls into an
+exported RSYNC_SSL_TYPE environment variable to make its use the default.
# BUGS
allow the daemon to function. By default the daemon runs without any
chrooting.
-0. `haproxy header`
+0. `proxy protocol`
When this parameter is enabled, all incoming connections must start with a
- V1 or V2 haproxy header. If the header is not found, the connection is
- closed.
+ V1 or V2 proxy protocol header. If the header is not found, the connection
+ is closed.
Setting this to `true` requires a proxy server to forward source IP
information to rsync, allowing you to log proper IP/host info and make use