Add Searxng.
This commit is contained in:
parent
5ba548b4b7
commit
d58da536b1
23
hosts/hub/apps/searxng.nix
Normal file
23
hosts/hub/apps/searxng.nix
Normal file
@ -0,0 +1,23 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
systemd.tmpfiles.rules = [
|
||||
"d /var/lib/searxng 0755 root root"
|
||||
];
|
||||
|
||||
virtualisation.oci-containers.containers.searxng = {
|
||||
image = "searxng/searxng:latest";
|
||||
environment = {
|
||||
BASE_URL = "https://searxng.tailc50184.ts.net";
|
||||
};
|
||||
ports = [
|
||||
"8080:8080"
|
||||
];
|
||||
volumes = [ "/var/lib/searxng:/etc/searxng" ];
|
||||
};
|
||||
|
||||
services.caddy.virtualHosts."https://searxng.tailc50184.ts.net".extraConfig = ''
|
||||
bind tailscale/searxng
|
||||
reverse_proxy http://localhost:8080
|
||||
'';
|
||||
}
|
@ -22,6 +22,7 @@
|
||||
../../roles/syncthing.nix
|
||||
./apps/dev.nix
|
||||
./apps/nextcloud.nix
|
||||
./apps/searxng.nix
|
||||
];
|
||||
|
||||
boot.loader.grub = {
|
||||
|
Loading…
Reference in New Issue
Block a user