This commit is contained in:
Motiejus Jakštys 2023-11-14 09:01:02 +02:00
parent c3bb5e41d6
commit de939d45cd
2 changed files with 18 additions and 5 deletions

View File

@ -160,6 +160,7 @@
gitea.enable = true;
snmp_exporter.enable = true;
sshguard.enable = true;
hass.enable = true;
headscale = {
enable = true;

View File

@ -13,7 +13,7 @@ in {
config = lib.mkIf cfg.enable {
mj.services.friendlyport.ports = [
{
subnets = myData.subnets.vpn.cidrs;
subnets = [myData.subnets.tailscale.cidr];
tcp = [myData.ports.hass];
}
];
@ -25,13 +25,25 @@ in {
"esphome"
"met"
"radio_browser"
# my stuff
"yamaha_musiccast"
"dlna_dmr"
];
config = {
auth_providers = {
trusted_networks = [myData.subnets.tailscale.cidr];
#trusted_proxies = ["127.0.0.1"];
};
default_config = {};
http = {
use_x_forwarded_for = true;
trusted_proxies = ["127.0.0.1"];
};
homeassistant = {
auth_providers = [
{
type = "trusted_networks";
trusted_networks = [myData.subnets.tailscale.cidr];
}
];
};
};
};
};