Skip to content

Commit

Permalink
Bump 1.0.4 to fix ingress container (#58)
Browse files Browse the repository at this point in the history
* Update crowdsec_openresty.conf

* Update main.lua

* Update crowdsec_nginx.conf.patch
  • Loading branch information
LaurenceJJones authored Sep 18, 2024
1 parent 8bbbd6e commit 3bf2085
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion debian/patches/crowdsec_nginx.conf.patch
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Index: openresty/crowdsec_openresty.conf

init_by_lua_block {
cs = require "crowdsec"
local ok, err = cs.init("/etc/crowdsec/bouncers/crowdsec-openresty-bouncer.conf", "crowdsec-openresty-bouncer/v1.0.3")
local ok, err = cs.init("/etc/crowdsec/bouncers/crowdsec-openresty-bouncer.conf", "crowdsec-openresty-bouncer/v1.0.4")
@@ -14,4 +14,4 @@ init_by_lua_block {
access_by_lua_block {
local cs = require "crowdsec"
Expand Down
2 changes: 1 addition & 1 deletion ingress-nginx/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local cs = require "plugins.crowdsec.crowdsec"
local ngx = ngx

local _M = {}
local ok, err = cs.init("/etc/nginx/lua/plugins/crowdsec/crowdsec-bouncer.conf", "crowdsec-openresty-bouncer/v1.0.3")
local ok, err = cs.init("/etc/nginx/lua/plugins/crowdsec/crowdsec-bouncer.conf", "crowdsec-openresty-bouncer/v1.0.4")
if ok == nil then
ngx.log(ngx.ERR, "[Crowdsec] " .. err)
error()
Expand Down
2 changes: 1 addition & 1 deletion openresty/crowdsec_openresty.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ lua_ssl_trusted_certificate ${SSL_CERTS_PATH};

init_by_lua_block {
cs = require "crowdsec"
local ok, err = cs.init("/etc/crowdsec/bouncers/crowdsec-openresty-bouncer.conf", "crowdsec-openresty-bouncer/v1.0.3")
local ok, err = cs.init("/etc/crowdsec/bouncers/crowdsec-openresty-bouncer.conf", "crowdsec-openresty-bouncer/v1.0.4")
if ok == nil then
ngx.log(ngx.ERR, "[Crowdsec] " .. err)
error()
Expand Down

0 comments on commit 3bf2085

Please sign in to comment.