This commit is contained in:
parent
181c0dfa6b
commit
7e0dd5acd2
4 changed files with 35 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue