I tried setting for example within a specific location in my openresty config. But it does not disable appsec (still getting banned) - Maybe i have gotten this wrong?
set $disable_appsec 1
set $disable_appsec 1
cs-openresty-bouncer = v1.1.1 crowdsec = v1.7.0
And also, if i were to change this value dynamically based on conditions, in what lua directive will this variable be evaluated?