searx: use declarative configuration

This commit is contained in:
Michele Guerini Rocco 2020-10-27 14:05:37 +01:00
parent 34b0a8ed51
commit 20466f5e2c
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450
3 changed files with 72 additions and 46 deletions

View File

@ -265,9 +265,29 @@
### Searx instance
services.searx = {
enable = true;
configFile = ./assets/searx-settings.yml;
};
environmentFile = config.secrets.searx.environment;
settings =
{ general.instance_name = "searxwell";
server.port = 8083;
server.base_url = "https://${config.var.hostname}/srx/";
# Replace DOI links with Sci-Hub
doi_resolver."sci-hub.se" = "https://sci-hub.se/";
default_doi_resolver = "sci-hub.se";
# Use authenticated APIs for some services
engines = [
{ name = "wolframalpha";
api_key = "@WOLFRAM_API_KEY@";
engine = "wolframalpha_api";
}
{ name = "youtube";
api_key = "@YOUTUBE_API_KEY@";
engine = "youtube_api";
}
];
};
};
### Reverse Proxy
services.nginx =

View File

@ -1,44 +1,45 @@
U2FsdGVkX1/xpt+S+G0n8o2sosRznrRFSybd4hEkXdoFf6BxNryK42UPHKE0e5Hs
EZO3pEVYkK7kxoLqsNZNDVgbIlhfwGKSYVYNJrMBPdwdag0tplqw7F0mU9gLFgHp
edR54IZ1hViSo6NAm+cvh1bIchbDcBV/Cj0ofr5T2T6LI5TrCeIE+huA/rteDr8h
+pey4UJR4ApDjwXjOuL8CBJ8j/TMGkYSsfcWqrBR5E1Sn5NTKK/U+Czv/4PH9Hnp
t+KMTQatjoj+jKpgW3AHFrbo50YUJxornwp+rMBLA1TQDmFEL/9TCkDp5spSYM6r
i99xdnXEG4/tXA3OWqN+CKTYsO5BDlepd3rVqYYcSLhUnZAp07tDNlHtC75wEIsR
xliWFGB4WTCrn+rV/a4xngz33SGGupbvtPPq/cf0EihtsS7D1+pitPVsCMtV8xs9
19m1MBDQjr3yIAPEj467IIq2pceknhBOpagU1U2q0f4yFBOpyG8x01rFPs6SWmzS
wrWm/iJilcO837/nSAIEnbgoUrwOkdVV891bbxEI5sFYd2/HnCB69R6jptOOiTk1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