move rss services to sid #49
5 changed files with 23 additions and 3 deletions
|
|
@ -18,8 +18,6 @@
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
./open-webui-oci.nix
|
./open-webui-oci.nix
|
||||||
./print-server.nix
|
./print-server.nix
|
||||||
./rss-bridge.nix
|
|
||||||
./rsshub-oci.nix
|
|
||||||
./vaultwarden.nix
|
./vaultwarden.nix
|
||||||
|
|
||||||
# ./alditalk-extender.nix # FIXME
|
# ./alditalk-extender.nix # FIXME
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,8 @@
|
||||||
./netdata.nix
|
./netdata.nix
|
||||||
./nginx.nix
|
./nginx.nix
|
||||||
./radicale.nix
|
./radicale.nix
|
||||||
|
./rss-bridge.nix
|
||||||
|
./rsshub-oci.nix
|
||||||
./step-ca.nix
|
./step-ca.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
reverseProxy = {
|
reverseProxy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
subdomain = constants.services.rss-bridge.subdomain;
|
subdomain = constants.services.rss-bridge.subdomain;
|
||||||
forceSSL = false;
|
forceSSL = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -10,5 +10,10 @@
|
||||||
services.rsshub-oci = {
|
services.rsshub-oci = {
|
||||||
enable = true;
|
enable = true;
|
||||||
inherit (constants.services.rsshub-oci) port;
|
inherit (constants.services.rsshub-oci) port;
|
||||||
|
reverseProxy = {
|
||||||
|
enable = true;
|
||||||
|
subdomain = constants.services.rss-bridge.subdomain;
|
||||||
|
forceSSL = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
@ -7,6 +7,9 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.rsshub-oci;
|
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 = {
|
images = {
|
||||||
# https://github.com/DIYgod/RSSHub/pkgs/container/rsshub
|
# https://github.com/DIYgod/RSSHub/pkgs/container/rsshub
|
||||||
|
|
@ -58,6 +61,10 @@ let
|
||||||
optional
|
optional
|
||||||
types
|
types
|
||||||
;
|
;
|
||||||
|
inherit (lib.utils)
|
||||||
|
mkReverseProxyOption
|
||||||
|
mkVirtualHost
|
||||||
|
;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.services.rsshub-oci = {
|
options.services.rsshub-oci = {
|
||||||
|
|
@ -77,6 +84,7 @@ in
|
||||||
default = null;
|
default = null;
|
||||||
description = "Environment file for secrets.";
|
description = "Environment file for secrets.";
|
||||||
};
|
};
|
||||||
|
reverseProxy = mkReverseProxyOption "RSSHub" "rsshub";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
@ -86,6 +94,13 @@ in
|
||||||
dockerCompat = true;
|
dockerCompat = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts = mkIf cfg.reverseProxy.enable {
|
||||||
|
"${fqdn}" = mkVirtualHost {
|
||||||
|
port = cfg.config.PORT;
|
||||||
|
ssl = cfg.reverseProxy.forceSSL;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
networking.firewall.interfaces =
|
networking.firewall.interfaces =
|
||||||
let
|
let
|
||||||
matchAll = if !config.networking.nftables.enable then "podman+" else "podman*";
|
matchAll = if !config.networking.nftables.enable then "podman+" else "podman*";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue