Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

limiter.toml does not exist when setting server.limiter: true #5

@thaynes43

Description

@thaynes43

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 = true

And 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.toml

And it is now there, errors are gone:

/etc/searxng # ls
limiter.toml  settings.yml  uwsgi.ini

And 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_SECRET

I am using this for Open WebUI which also required - json as a format.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions