Merge pull request 'move rss services to sid' (#49) from develop into master
Some checks failed
Deploy configs / deploy-configs (push) Failing after 11s
Some checks failed
Deploy configs / deploy-configs (push) Failing after 11s
Reviewed-on: #49
This commit is contained in:
commit
af0a423feb
6 changed files with 23 additions and 15 deletions
|
|
@ -18,8 +18,6 @@
|
|||
./nginx.nix
|
||||
./open-webui-oci.nix
|
||||
./print-server.nix
|
||||
./rss-bridge.nix
|
||||
./rsshub-oci.nix
|
||||
./vaultwarden.nix
|
||||
|
||||
# ./alditalk-extender.nix # FIXME
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@
|
|||
./netdata.nix
|
||||
./nginx.nix
|
||||
./radicale.nix
|
||||
./rss-bridge.nix
|
||||
./rsshub-oci.nix
|
||||
./step-ca.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -77,18 +77,6 @@ in
|
|||
error_log /var/log/nginx/open-webui-error.log debug;
|
||||
'';
|
||||
};
|
||||
virtualHosts."${constants.services.rss-bridge.fqdn}" = {
|
||||
enableACME = ssl;
|
||||
forceSSL = ssl;
|
||||
locations."/" = {
|
||||
proxyPass = "http://${constants.hosts.rx4.ip}";
|
||||
};
|
||||
};
|
||||
virtualHosts."${constants.services.rsshub-oci.fqdn}" = mkVirtualHost {
|
||||
inherit ssl;
|
||||
address = constants.hosts.rx4.ip;
|
||||
port = constants.services.rsshub-oci.port;
|
||||
};
|
||||
virtualHosts."${constants.services.vaultwarden.fqdn}" = {
|
||||
useACMEHost = "sid-internal";
|
||||
forceSSL = ssl;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
reverseProxy = {
|
||||
enable = true;
|
||||
subdomain = constants.services.rss-bridge.subdomain;
|
||||
forceSSL = false;
|
||||
forceSSL = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -10,5 +10,10 @@
|
|||
services.rsshub-oci = {
|
||||
enable = true;
|
||||
inherit (constants.services.rsshub-oci) port;
|
||||
reverseProxy = {
|
||||
enable = true;
|
||||
subdomain = constants.services.rss-bridge.subdomain;
|
||||
forceSSL = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -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 {
|
||||
inherit (cfg) 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