feat: add fivefilters
This commit is contained in:
@@ -91,6 +91,7 @@
|
||||
"/omada.cloonar.com/${config.networkPrefix}.97.2"
|
||||
"/web-02.cloonar.com/${config.networkPrefix}.97.5"
|
||||
"/pla.cloonar.com/${config.networkPrefix}.97.5"
|
||||
"/fivefilters.cloonar.com/${config.networkPrefix}.97.10"
|
||||
"/home-assistant.cloonar.com/${config.networkPrefix}.97.20"
|
||||
"/mopidy.cloonar.com/${config.networkPrefix}.97.21"
|
||||
"/snapcast.cloonar.com/${config.networkPrefix}.97.21"
|
||||
|
||||
32
hosts/fw/modules/fivefilters.nix
Normal file
32
hosts/fw/modules/fivefilters.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{ config, pkgs, ... }: {
|
||||
users.users.fivefilters = {
|
||||
isSystemUser = true;
|
||||
group = "omada";
|
||||
home = "/var/lib/fivefilters";
|
||||
createHome = true;
|
||||
};
|
||||
users.groups.fivefilters = { };
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
# parent is created by createHome already, but harmless to repeat
|
||||
"d /var/lib/fivefilters 0755 fivefilters fivefilters - -"
|
||||
"d /var/lib/fivefilters/cache 0755 fivefilters fivefilters - -"
|
||||
];
|
||||
|
||||
# TODO: check if we can run docker service as other user than root
|
||||
virtualisation = {
|
||||
oci-containers.containers = {
|
||||
fivefilters = {
|
||||
autoStart = true;
|
||||
image = "heussd/fivefilters-full-text-rss:3.8.1";
|
||||
volumes = [
|
||||
"/var/lib/fivefilters/cache:/var/www/html/cache"
|
||||
];
|
||||
extraOptions = [
|
||||
"--network=server"
|
||||
"--ip=${config.networkPrefix}.97.10"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -25,4 +25,12 @@
|
||||
recommendedProxySettings = true;
|
||||
};
|
||||
};
|
||||
services.nginx.virtualHosts."fivefilters.cloonar.com" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
acmeRoot = null;
|
||||
locations."/" = {
|
||||
proxyPass = "http://${config.networkPrefix}.97.10";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user