Crowdsec Manager is ignoring my dynamic config path when setting whitelist (crowdsec_manager discussion #28)

:speech_balloon: GitHub discussion crowdsec_manager #28 in Q&A, started by Viceman256 on GitHub

Environment label in docker:
- TRAEFIK_DYNAMIC_CONFIG=/app/config/traefik/rules/dynamic_config.yml

Path set in GUI:

External Image

Logs show path set:
2025-12-09T00:13:35Z INF msg=Setting Traefik config path path=/app/config/traefik/rules/dynamic_config.yml

Go to add to traefik whitelist, receive error (crowdsec whitelist works fine):

2025-12-09T00:13:45Z ERR error=command failed (exit code 1): sed: /etc/traefik/dynamic_config.yml: No such file or directory
 msg=Failed to add IP to Traefik whitelist: command failed (exit code 1): sed: /etc/traefik/dynamic_config.yml: No such file or directory

Docker exec shows the dynamic config:

docker exec crowdsec-manager ls /app/config/traefik/rules
custom-middlewares.yml
dynamic_config.yml

Containers were rebuilt as well with attempted config, it still presents that error.


:speech_balloon: Join in here or on GitHub.

hhftechnology commented on GitHub:

@​Viceman256 https://crowdsec-manager.hhf.technology/docs/configuration/environment#4-custom-traefik-dynamic-configuration

You are changing path inside the crowdsec_manager container, that will not work

Viceman256 commented on GitHub:

Per my comment, it’s already set via environment path. Why have the environment path and the GUI option if both are ignored?

  - TRAEFIK_DYNAMIC_CONFIG=/app/config/traefik/rules/dynamic_config.yml

Rustymage replied in a thread on GitHub to Viceman256:

Did you ever fix this?

Viceman256 replied in a thread on GitHub to Viceman256:

Unfortunately not, I tried every possible configuration, it never worked. I ended up having to revert my traefik config to a standard config to match traditional setups.