Skip to content

add support for fail_open configuration#60

Open
blotus wants to merge 5 commits intomainfrom
add-fail-open
Open

add support for fail_open configuration#60
blotus wants to merge 5 commits intomainfrom
add-fail-open

Conversation

@blotus
Copy link
Copy Markdown
Member

@blotus blotus commented Mar 26, 2025

This PR adds a new fail_open config option that allows to configure the behavior of the worker for free plan if more than 100k requests were made during the day.

The request_limit_fail_open parameter is not officially documented by cloudflare, so this might break at any time (but removing the parameter from the config file would fix any issues).

This PR also deletes the interface that was used to interact with the cloudflare API: we need to access member fields of the API client, which is not possible with an interface (it does not look like the interface had any practical purposes.)

@flo1t
Copy link
Copy Markdown

flo1t commented Oct 3, 2025

i've generated a simple script to set this via script until this pr is merged. if anyone is interested:
https://github.com/flo1t/selfhosted/blob/main/hosts/all/scripts/dev/cloudflare-crowdsec-bouncer-failopen.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants