This repository was archived by the owner on May 27, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
limiter.toml does not exist when setting server.limiter: true #5
Copy link
Copy link
Open
Description
Hello,
Posting for awareness if anyone else encounters this. When I set server.limiter: true I started seeing errors that limiter.toml did not exist and going into the container I did not find it at /etc/serxng. I created a ConfigMap with this value:
apiVersion: v1
kind: ConfigMap
metadata:
name: configmap-searxng-limiter
namespace: haynes-intelligence
data:
limiter.toml: |
# This configuration file updates the default configuration file
# See https://github.com/searxng/searxng/blob/master/searx/limiter.toml
[botdetection.ip_limit]
link_token = trueAnd then configured persistence to plop it where the service was looking for it:
persistence:
limiter:
enabled: true
type: configMap
name: configmap-searxng-limiter
mountPath: /etc/searxng/limiter.toml
subPath: limiter.tomlAnd it is now there, errors are gone:
/etc/searxng # ls
limiter.toml settings.yml uwsgi.iniAnd the contents match the map:
/etc/searxng # cat limiter.toml
# This configuration file updates the default configuration file
# See https://github.com/searxng/searxng/blob/master/searx/limiter.toml
[botdetection.ip_limit]
link_token = true/etc/searxng # For reference here are the settings I configured as well to get the limiter working:
/etc/searxng # cat settings.yml
redis:
url: redis://searxng-redis:6379
search:
formats:
- html
- json
server:
limiter: true
secret_key: $SEARXNG_SECRETI am using this for Open WebUI which also required - json as a format.
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels