reenable crowdsec [ci skip]

This commit is contained in:
Viktor Barzin 2025-08-31 15:20:57 +00:00
parent 6b316dc1c6
commit c17c1381c5
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
8 changed files with 100 additions and 106 deletions

View file

@ -331,8 +331,8 @@ resource "kubernetes_config_map" "ingress_nginx_controller" {
setvar:tx.block_harvester_ip=1,\
setvar:tx.block_spammer_ip=1"
EOT
# plugins = "crowdsec" # metabase causing high cpu?
plugins = ""
plugins = "crowdsec"
# plugins = ""
lua-shared-dicts = "crowdsec_cache: 50m"
http-snippet : <<-EOT
proxy_cache_path /tmp/nginx-cache levels=1:2 keys_zone=static-cache:2m max_size=100m inactive=7d use_temp_path=off;
@ -522,23 +522,23 @@ resource "kubernetes_deployment" "ingress_nginx_controller" {
name = "MODE"
value = "stream"
}
# env {
# name = "CAPTCHA_PROVIDER"
# value = "recaptcha"
# }
env {
name = "BOUNCING_ON_TYPE"
# value = "all"
value = "ban"
name = "CAPTCHA_PROVIDER"
value = "recaptcha"
}
env {
name = "BOUNCING_ON_TYPE"
value = "all"
# value = "ban"
}
env {
name = "SECRET_KEY"
value = var.crowdsec_captcha_secret_key
}
env {
name = "SITE_KEY"
value = var.crowdsec_captcha_site_key
}
# env {
# name = "SECRET_KEY"
# value = var.crowdsec_captcha_secret_key
# }
# env {
# name = "SITE_KEY"
# value = var.crowdsec_captcha_site_key
# }
# env {
# name = "DISABLE_RUN"