move rss services to sid
Some checks failed
Flake check / flake-check (pull_request) Failing after 6s
Build hosts / build-hosts (pull_request) Failing after 10s

This commit is contained in:
sid 2026-05-05 19:05:06 +02:00
parent 0778974a50
commit 43244fd370
5 changed files with 23 additions and 3 deletions

View file

@ -7,6 +7,9 @@
let
cfg = config.services.rsshub-oci;
domain = config.networking.domain;
subdomain = cfg.reverseProxy.subdomain;
fqdn = if (cfg.reverseProxy.enable && subdomain != "") then "${subdomain}.${domain}" else domain;
images = {
# https://github.com/DIYgod/RSSHub/pkgs/container/rsshub
@ -58,6 +61,10 @@ let
optional
types
;
inherit (lib.utils)
mkReverseProxyOption
mkVirtualHost
;
in
{
options.services.rsshub-oci = {
@ -77,6 +84,7 @@ in
default = null;
description = "Environment file for secrets.";
};
reverseProxy = mkReverseProxyOption "RSSHub" "rsshub";
};
config = mkIf cfg.enable {
@ -86,6 +94,13 @@ in
dockerCompat = true;
};
services.nginx.virtualHosts = mkIf cfg.reverseProxy.enable {
"${fqdn}" = mkVirtualHost {
port = cfg.config.PORT;
ssl = cfg.reverseProxy.forceSSL;
};
};
networking.firewall.interfaces =
let
matchAll = if !config.networking.nftables.enable then "podman+" else "podman*";