diff --git a/configuration.nix b/configuration.nix index 2f3b086..de637c6 100644 --- a/configuration.nix +++ b/configuration.nix @@ -182,6 +182,37 @@ content = '' [server] port = 8889 + http_timeout = "10s" + base_url = "https://search2.ashisgreat.xyz" + + [engines] + local_ported = ["wikipedia", "arxiv", "crossref", "braveapi", "qwant", "duckduckgo", "github", "reddit", "bing"] + + [engines.brave] + api_key = "${config.sops.placeholder.openclaw_brave_api_key}" + + [cache] + address = "127.0.0.1:6379" + db = 1 + default_ttl = "5m" + + [cors] + allowed_origins = ["*"] + + [rate_limit] + requests = 30 + window = "1m" + cleanup_interval = "5m" + + [global_rate_limit] + requests = 0 + window = "1m" + + [burst_rate_limit] + burst = 0 + burst_window = "5s" + sustained = 0 + sustained_window = "1m" ''; };