feat(services/searxng): add secret key
Some checks failed
Nix CI / build (push) Failing after 1m0s

This commit is contained in:
Rustam Efimov 2026-04-12 18:41:27 +03:00
parent 181c0dfa6b
commit 7e0dd5acd2
No known key found for this signature in database
4 changed files with 35 additions and 3 deletions

View file

@ -12,6 +12,8 @@ mkIf cfg.enable {
services.searx = {
enable = true;
redisCreateLocally = true;
domain = cfg.domain;
environmentFile = config.sops.secrets.searx.path;
# Rate limiting
limiterSettings = {
@ -65,7 +67,8 @@ mkIf cfg.enable {
# Server configuration
server = {
base_url = if cfg.domain != null then "https://${cfg.domain}" else null end;
port = cfg.port;
secret_key = "@SEARXNG_SECRET_KEY@";
inherit (cfg) port;
bind_address = "127.0.0.1";
limiter = true;
public_instance = true;