move rss services to sid
This commit is contained in:
parent
0778974a50
commit
43244fd370
5 changed files with 23 additions and 3 deletions
|
|
@ -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*";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue