nix-config/containers/freshrss/default.nix

31 lines
680 B
Nix
Raw Normal View History

2024-11-10 17:54:08 -05:00
{ ... }:
let
directories = [
"/opt/freshrss"
];
port = "8888";
in
{
systemd.tmpfiles.rules = map (x: "d ${x} 0755 share share - -") directories;
virtualisation.oci-containers.containers.freshrss = {
image = "freshrss/freshrss:latest";
autoStart = true;
ports = [
"${port}:80"
];
volumes = [
"/opt/freshrss/data:/var/www/FreshRSS/data"
"/opt/freshrss/extensions:/var/www/FreshRSS/extensions"
];
environment = {
TZ = "America/Detroit";
CRON_MIN = "*/20";
};
};
services.caddy.virtualHosts."newspaper.tdback.net".extraConfig = ''
encode zstd gzip
reverse_proxy http://localhost:${port}
'';
}