Commit graph

45 commits

Author SHA1 Message Date
Laurence Jones
f44ea23d5e
Add no cache headers (#47) 2023-10-23 15:53:15 +01:00
blotus
cd881cb387
properly parse config value containing = (#42) 2023-08-04 17:13:42 +02:00
Laurence Jones
902f055023
Add other captcha providers / update templates (#39)
* Add option for another captcha providers (hcaptcha, turnstile)

* Fix wrong map usage

* Update templates to mobile first and light/dark mode options

* rename recaptcha to captcha more generic

* Just one more update to show pointer cursor on submit button

* height on mobile was out fixed

* Edit title

* Make button same color dark and light mode easily to see

* Add auto captcha submit on completion and increase height on ban template on mobile

* Fix typo

* Fix dark mode button on ban

* Add short timeout to make captcha smoother

* half timeout to make captcha smoother

* Fix the things I noticed when updating the haproxy bouncer

* Fix light mode on load within templates
2023-03-29 10:07:30 +01:00
blotus
cad85ae199
New approach for handling stream update (#36) 2022-11-25 14:02:56 +01:00
alteredCoder
eb5de9c364 fix ret_code option check 2022-03-31 18:24:46 +02:00
alteredCoder
4f2c35ca91 Minor refactor for the ret_code parsing 2022-03-31 17:22:09 +02:00
alteredCoder
1201e453de Fix empty ret_code behavior and empty line in config 2022-03-31 17:02:53 +02:00
alteredCoder
29b27f4218 Add warning when ret_code is not supported 2022-03-30 19:16:25 +02:00
alteredCoder
5c6e890f49 Fix Bouncer bypass when using HTTP1.0 2022-03-30 18:34:28 +02:00
alteredCoder
300b448990 Fix fallback remediation 2022-03-09 15:18:13 +01:00
he2ss
e0d9cb1c10
Merge pull request #27 from LePresidente/main
Add ability to enabled/disable bouncer from config.
2022-03-08 12:58:04 +01:00
Brian Munro
a7d712f65d Fix nginx error to reflect option default. 2022-02-24 17:09:03 +02:00
Brian Munro
39e00286e3 Fix indentation, use space instead of tabs 2022-02-24 17:07:35 +02:00
alteredCoder
f56383722b fix 2022-02-22 18:50:11 +01:00
alteredCoder
2cd7200544 Fix live query mode when IP is good 2022-02-22 18:41:30 +01:00
Brian Munro
e688107dc4 Make sure only true|false is entered into the config. 2022-02-22 16:16:32 +02:00
Brian Munro
d65ae46067 Add ability to enabled/disable bouncer from config. 2022-02-22 06:33:05 +02:00
alteredCoder
e978bf7b33 Close HTTP connections 2022-02-09 15:37:06 +01:00
he2ss
4313d97ba6 improve captcha template path verif 2022-02-08 17:50:28 +01:00
he2ss
6f689d54ec fix error message 2022-02-08 17:48:03 +01:00
he2ss
7a6e1912f7 improve code 2022-02-08 17:44:41 +01:00
he2ss
c1ec091034 fix typo 2022-02-08 16:49:41 +01:00
he2ss
aadf53ee71 improve configuration mgmt code 2022-02-08 16:42:27 +01:00
he2ss
e06594b580 fix suggestions 2022-02-08 16:24:09 +01:00
he2ss
a1540984a0 update var to local var 2022-02-01 16:11:05 +01:00
he2ss
88b125b626 add local to all missing variables 2022-02-01 11:51:10 +01:00
alteredCoder
5ddc2dcc60 update 2022-02-01 10:12:13 +01:00
alteredCoder
7487f3f83a update 2022-01-31 17:24:22 +01:00
blotus
b23acef8f9
fix timeout configuration for HTTPS LAPI (#15) 2021-11-02 10:28:45 +01: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
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
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
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
92c3b8fc88 fix cache logic 2020-11-10 21:06:22 +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
c52dfc1f95 get by ip=X rather than value=X&scope=ip 2020-11-06 13:41:15 +01:00
AlteredCoder
c8e6b6bd7f fix user agent 2020-11-03 16:24:08 +01:00
AlteredCoder
5bbbb1af35 add user agent 2020-11-03 15:45:44 +01:00
AlteredCoder
86fef2a27a use /v1 to request API 2020-10-19 17:33:58 +02:00
AlteredCoder
cdce8f2341 first commit 2020-10-07 16:49:14 +02:00