Make HAProxy's log format configurable
Users can use the environment varible `ROUTER_SYSLOG_FORMAT` to define
HAProxy's log format now.
@@ -38,7 +38,11 @@ defaults
# Add x-forwarded-for header.
{{- if ne (env "ROUTER_SYSLOG_ADDRESS" "") "" }}
+ {{- if ne (env "ROUTER_SYSLOG_FORMAT" "") "" }}
+ log-format {{env "ROUTER_SYSLOG_FORMAT" ""}}
+ {{- else }}
option httplog
+ {{- end }}
log global
{{- end }}
