Skip to content

Commit 89c5069

Browse files
committedFeb 4, 2025··
host(koumakan): fixup weirdness
1 parent 6a04447 commit 89c5069

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed
 

‎systems/koumakan/services/proxies/searxng.nix

+14-2
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,30 @@ in {
1616
'')
1717
];
1818

19-
users.users.nginx.extraGroups = [config.users.users.searx.name];
19+
users.users.nginx.extraGroups = [config.users.groups.searx.name];
2020

2121
services.searx = {
2222
enable = true;
2323
runInUwsgi = true;
2424
environmentFile = secrets.getTemplate "searxng.env";
2525
redisCreateLocally = true;
2626
uwsgiConfig = {
27-
socket = "/run/searx/searxng.sock";
27+
http = "/run/searx/searxng.sock";
2828
chmod-socket = "660";
2929
disable-logging = true;
3030
};
31+
32+
# FIXME: this doesn't work atm because it's not read i think? add a symlink from /run/searx/limiter.toml pointing to /etc/searx/limiter.toml
33+
limiterSettings = {
34+
real_ip = {
35+
x_for = 1;
36+
ipv4_prefix = 32;
37+
ipv6_prefix = 48;
38+
};
39+
botdetection.ip_limit.link_token = true;
40+
botdetection.ip_lists.pass_searxng_org = true;
41+
};
42+
3143
settings = {
3244
use_default_settings = true;
3345
general.contact_Url = "mailto:cassie@soopy.moe";

0 commit comments

Comments
 (0)
Please sign in to comment.