Skip to content

Commit d3b016b

Browse files
authored
fix the nginx variables documentation (#941)
1 parent 55a96de commit d3b016b

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

crowdsec-docs/unversioned/bouncers/nginx.mdx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,14 @@ The timeout to process the request from the Remediation Component to the AppSec
645645
### Nginx variables
646646
647647
Nginx variables can be used to adapt behaviour and or more flexible configurations:
648-
* ngx.var.cs_disable_bouncer: set to 1, it will disable the bouncer
649-
* ngx.var.enable_appsec: set to 1, it will enable the appsec even if it's disabled by configuration or if bouncer is disabled
650-
* ngx.var.disable_appsec: set to 1, it will disable the appsec
648+
* `ngx.var.crowdsec_disable_bouncer`: set to 1, it will disable the bouncer
649+
* `ngx.var.crowdsec_enable_bouncer`: set to 1, it will disable the bouncer
650+
* `ngx.var.crowdsec_enable_appsec`: set to 1, it will enable the appsec even if it's disabled by configuration or if bouncer is disabled
651+
* `ngx.var.crowdsec_disable_appsec`: set to 1, it will disable the appsec
652+
* `ngx.var.crowdsec_always_send_to_appsec`: set 1, it will always send the request to appsec, even if a decision already exist for the ip requesting
653+
654+
If both `ngx.var.crowdsec_disable_bouncer` and
655+
`ngx.var.crowdsec_enable_bouncer`, or both `ngx.var.crowdsec_disable_appsec` and
656+
`ngx.var.crowdsec_enable_appsec` are set to 1, it's the disable configuration
657+
that prevails.
658+

0 commit comments

Comments
 (0)