This commit is contained in:
parent
aea432d407
commit
9531dd40a8
4 changed files with 31 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
./fail2ban.nix
|
||||
./forgejo.nix
|
||||
./forgejo-runner.nix
|
||||
./searxng.nix
|
||||
];
|
||||
|
||||
services.caddy = {
|
||||
|
|
|
|||
29
hosts/physique/hyponix/services/searxng.nix
Normal file
29
hosts/physique/hyponix/services/searxng.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{config, ...}:
|
||||
{
|
||||
|
||||
age.secrets = {
|
||||
searxng-secret-key = {
|
||||
file = ../../../../secrets/services/searxng.age;
|
||||
owner = "searx";
|
||||
};
|
||||
};
|
||||
|
||||
services.searx = {
|
||||
enable = true;
|
||||
|
||||
redisCreateLocally = true;
|
||||
|
||||
settings.server = {
|
||||
port = 8888;
|
||||
bind_address = "::1";
|
||||
secret_key = config.age.secrets.searxng-secret-key.path;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
services.caddy.virtualHosts."search.${config.networking.domain}" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy localhost:${toString config.services.searx.settings.server.port}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
@ -12,5 +12,6 @@ let
|
|||
in
|
||||
{
|
||||
"secrets/services/forgejo/forgejo-runner-token-1.age".publicKeys = admins ++ [ hyponix ];
|
||||
"secrets/services/searxng.age".publicKeys = admins ++ [ hyponix ];
|
||||
}
|
||||
|
||||
|
|
|
|||
BIN
secrets/services/searxng.age
Normal file
BIN
secrets/services/searxng.age
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue