net
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
with lib;
|
||||
let
|
||||
cfg = config.${namespace}.services.home-assistant;
|
||||
net = lib.${namespace}.network;
|
||||
in
|
||||
{
|
||||
# disabledModules = [
|
||||
@@ -348,16 +349,15 @@ in
|
||||
http = {
|
||||
use_x_forwarded_for = true;
|
||||
trusted_proxies = [
|
||||
"172.30.33.0/24"
|
||||
"10.0.1.4"
|
||||
"10.0.1.3"
|
||||
"10.0.1.18"
|
||||
"10.0.1.0/24"
|
||||
net.subnet.docker
|
||||
net.hosts.nuc.lan
|
||||
net.hosts.nas.lan
|
||||
net.subnet.lan
|
||||
];
|
||||
};
|
||||
|
||||
recorder = {
|
||||
db_url = "postgresql://homeassistant@10.0.1.3/homeassistant";
|
||||
db_url = "postgresql://homeassistant@${net.hosts.nas.lan}/homeassistant";
|
||||
purge_keep_days = 180;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user