add freshrss on genepi
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user