Commit graph

212 commits

Author SHA1 Message Date
alteredCoder
3de469de06 update conf 2022-01-24 19:24:19 +01:00
alteredCoder
5f4e74ad83 recaptcha support 2022-01-24 18:24:27 +01:00
AlteredCoder
b442956990
Merge pull request #21 from crowdsecurity/fix_for_ingress
fix lib for ingress nginx
2022-01-24 12:28:06 +01:00
he2ss
37d815ef3a fix lib for ingress nginx 2022-01-24 12:25:27 +01:00
AlteredCoder
d82839b710
Merge pull request #18 from crowdsecurity/range_support_1
Range support (IPv4/IPv6)
2022-01-24 11:43:27 +01:00
he2ss
39c8f84736 fix live mode 2022-01-24 11:32:01 +01:00
he2ss
be146b8ffd fix PR comments 2022-01-24 11:08:59 +01:00
he2ss
21bd88f56e
Merge branch 'main' into range_support_1 2022-01-21 21:36:07 +01:00
he2ss
4e09cc2ad6 fix ipv4 range support 2022-01-21 21:31:23 +01:00
he2ss
58f44eced5 avoid using external lib for ip parsing 2022-01-21 16:51:40 +01:00
he2ss
5e03a4c571 fix ipv6 range support 2022-01-20 10:47:08 +01:00
he2ss
e0f68b1265
Merge pull request #19 from bennet-esyoil/fix/local-variable-scope
fix: moved variable to local-scope
2022-01-18 17:07:56 +01:00
he2ss
9e85181cc8 add bitop lib 2022-01-18 17:01:02 +01:00
Bennet Gallein
8e971f71cf fix: moved variable to local-scope 2022-01-18 16:43:14 +01:00
he2ss
515aa9911a avoid using cidr-libffi library 2022-01-17 18:17:43 +01:00
he2ss
06412b992d
Merge branch 'main' into range_support_1 2022-01-15 15:55:57 +01:00
he2ss
d6112b7e39 fix ipv6 range support 2022-01-15 15:25:49 +01:00
he2ss
7ef7b68d73
fix #17
fix #17
2022-01-14 15:09:20 +01:00
he2ss
4db2cda499 range support method 1 2022-01-13 09:48:05 +01:00
alteredCoder
ecc0cb1517 retry to communicate with crowdsec 2022-01-07 18:07:11 +01:00
AlteredCoder
b9529e8a51
Merge pull request #16 from crowdsecurity/change_timer
change from timer.ever (to recent) to timer.at
2022-01-07 17:44:09 +01:00
he2ss
bc23f1974d add check on timer launch 2022-01-07 17:38:47 +01:00
he2ss
d30c512f0f fix bug 2022-01-07 17:35:22 +01:00
he2ss
6ff8e4504a remove unused code 2022-01-07 17:31:05 +01:00
he2ss
7612180225 use timer.every if available 2022-01-07 17:29:33 +01:00
he2ss
bd18a3b1f5 change from timer.ever (to recent) to timer.at 2022-01-07 16:25:23 +01:00
alteredCoder
40ac6c59a7 rename cache variable 2022-01-05 18:33:41 +01:00
alteredCoder
2b8b18d556 fix parse duration 2022-01-05 18:27:17 +01:00
he2ss
984a09b785 add config file for nginx based lua plugin 2022-01-05 15:51:15 +01:00
he2ss
be02e32635 add new lib for nginx based only 2022-01-05 15:10:54 +01:00
blotus
b23acef8f9
fix timeout configuration for HTTPS LAPI (#15) 2021-11-02 10:28:45 +01:00
he2ss
3e8c308bce
Merge pull request #12 from crowdsecurity/handle_log_level
Handle log level
2021-09-09 15:01:45 +02:00
he2ss
800423d2cb fix logfile path 2021-09-09 14:25:30 +02:00
he2ss
84469fa2be fix typo added by vscode 2021-09-09 11:40:45 +02:00
he2ss
8d0d891097 fix typo 2021-09-09 11:36:33 +02:00
he2ss
371556232f add log level 2021-09-09 11:08:14 +02:00
Thibault "bui" Koechlin
3c235c813f
Merge pull request #10 from crowdsecurity/fix_pr_6
fix pr #6
2021-02-09 18:09:16 +01:00
bui
5cf477eb5e local variables declaration will lead to error on line 102, fix scope 2021-02-09 18:05:16 +01:00
Thibault "bui" Koechlin
35bc3a4c21
Merge pull request #9 from blotus/handle-lua-request-timeout
Add REQUEST_TIMEOUT parameter
2021-02-09 14:41:19 +01:00
Thibault "bui" Koechlin
743c6774e9
Merge pull request #6 from bunkerity/bunkerity-patch-1
add local prefix to avoid warnings
2021-02-09 14:28:35 +01:00
Sebastien Blot
ac61603d6c update README 2021-02-08 17:41:57 +01:00
Sebastien Blot
580fab7b02 add REQUEST_TIMEOUT config parameter 2021-02-08 17:41:45 +01:00
Bunkerity
dcfba46ccd
add local prefix to avoid warnings
Avoid warnings like this : 

```
2020/12/28 20:37:35 [warn] 3368#3368: *1 [lua] _G write guard:12: __newindex(): writing a global Lua variable ('headers') which may lead to race conditions between concurrent requests, so prefer the use of 'local' variables#012stack traceback:#012#011/usr/local/lib/lua/crowdsec/CrowdSec.lua:85: in function 'allowIp'#012#011access_by_lua(main-lua.conf:166):105: in main chunk, client: 1.3.3.7, server: some.server.com, request: "GET /randomfile1 HTTP/2.0", host: "some.server.com"
```
2020-12-28 21:49:31 +01:00
AlteredCoder
71c4247d6b
Merge pull request #5 from crowdsecurity/fix_errors
return the error
2020-11-26 11:33:21 +01:00
Thibault bui Koechlin
4a85ae8cca be sure to log errors in both nginx and our dedicated log. the print output was to be seen nowhere. 2020-11-26 11:25:31 +01:00
Thibault "bui" Koechlin
8b151e580c
Merge pull request #4 from crowdsecurity/fix_cacheLogic
fix cache logic
2020-11-11 12:36:55 +01:00
Thibault bui Koechlin
92c3b8fc88 fix cache logic 2020-11-10 21:06:22 +01:00
Thibault "bui" Koechlin
2bd6c0c0f7
Merge pull request #3 from crowdsecurity/fix_cache
fix cache management
2020-11-06 14:16:34 +01:00
Thibault bui Koechlin
0df2a22f8f cache the information, even if we have no decision about it. It will be the majority of the cases - hopefully 2020-11-06 14:01:30 +01:00
Thibault "bui" Koechlin
f33485548a
Merge pull request #2 from crowdsecurity/DecisionsGetByIp
GET `/decisions?ip=X` rather than `/decisions?value=X&scope=ip`
2020-11-06 13:43:21 +01:00