add freshrss on genepi

This commit is contained in:
2025-01-31 22:55:37 +01:00
parent 75b0494eaa
commit 7c303fd8f2
5 changed files with 52 additions and 9 deletions

View File

@@ -1,4 +1,15 @@
{ config, ... }:
{ config, lib, ... }:
let
domain = "home.rpqt.fr";
genepi = {
ip = "100.83.123.79";
subdomains = [
"grafana"
"images"
"rss"
];
};
in
{
networking.firewall.interfaces."${config.services.tailscale.interfaceName}" = {
allowedTCPPorts = [ 53 ];
@@ -14,14 +25,8 @@
interface = [ "${config.services.tailscale.interfaceName}" ];
access-control = [ "100.0.0.0/8 allow" ];
local-zone = [
''"grafana.home.rpqt.fr." redirect''
''"images.home.rpqt.fr" redirect''
];
local-data = [
''"grafana.home.rpqt.fr. IN A 100.83.123.79"''
''"images.home.rpqt.fr. IN A 100.83.123.79"''
];
local-zone = lib.map (subdomain: ''"${subdomain}.${domain}." redirect'') genepi.subdomains;
local-data = lib.map (subdomain: ''"${subdomain}.${domain}. IN A ${genepi.ip}"'') genepi.subdomains;
};
};
};