I have removed the lua based information as it does not appear to be installed in the current version.
sudo haproxy -c -f /etc/haproxy/haproxy.cfg
[NOTICE] (192571) : haproxy version is 2.8.5-1ubuntu3.4
[NOTICE] (192571) : path to executable is /usr/sbin/haproxy
[ALERT] (192571) : config : parsing [/etc/haproxy/haproxy.cfg:98] : ‘filter’ : ‘No SPOE agent found in file /etc/haproxy/crowdsec.cfg’
[ALERT] (192571) : config : parsing [/etc/haproxy/haproxy.cfg:107]: ‘http-request’ expects ‘wait-for-handshake’, ‘set-log-level’, ‘set-nice’, ‘use-service’, ‘sc-add-gpc()', 'sc-inc-gpc()’, ‘sc-inc-gpc0()', 'sc-inc-gpc1()’, ‘sc-set-gpt()', 'sc-set-gpt0()’, ‘send-spoe-group’, ‘do-resolve()', ‘cache-use’, 'add-acl()’, ‘add-header’, ‘allow’, ‘auth’, ‘capture’, ‘del-acl()', ‘del-header’, 'del-map()’, ‘deny’, ‘disable-l7-retry’, ‘early-hint’, ‘normalize-uri’, ‘redirect’, ‘reject’, ‘replace-header’, ‘replace-path’, ‘replace-pathq’, ‘replace-uri’, ‘replace-value’, ‘return’, ‘set-header’, ‘set-map()', ‘set-method’, ‘set-path’, ‘set-pathq’, ‘set-query’, ‘set-uri’, ‘strict-mode’, ‘tarpit’, 'track-sc()’, ‘set-timeout’, ‘wait-for-body’, ‘set-var-fmt()', 'set-var()’, ‘unset-var(*)’, ‘set-dst’, ‘set-dst-port’, ‘set-mark’, ‘set-src’, ‘set-src-port’, ‘set-tos’, ‘silent-drop’, ‘set-priority-class’, ‘set-priority-offset’, ‘set-bandwidth-limit’, but got ‘lua.crowdsec_handle’.
[ALERT] (192571) : config : Error(s) found in configuration file : /etc/haproxy/haproxy.cfg