Compare commits
4 Commits
router/mod
...
46cce0d9d6
Author | SHA1 | Date | |
---|---|---|---|
46cce0d9d6
|
|||
2bd88d7a93
|
|||
5ec716919d
|
|||
47c9cff8f5
|
@@ -80,6 +80,8 @@ in
|
|||||||
"|etappi.${sysdomain}^$dnsrewrite=${ifs.lan.p4}.12"
|
"|etappi.${sysdomain}^$dnsrewrite=${ifs.lan.p4}.12"
|
||||||
"|etappi.${sysdomain}^$dnsrewrite=${ifs.lan.ulaPrefix}::12:1"
|
"|etappi.${sysdomain}^$dnsrewrite=${ifs.lan.ulaPrefix}::12:1"
|
||||||
|
|
||||||
|
"|hass.${domain}^$dnsrewrite=${ifs.lan.ulaAddr}"
|
||||||
|
|
||||||
# Lab DNS rewrites
|
# Lab DNS rewrites
|
||||||
"||lab.${domain}^$dnsrewrite=etappi.${sysdomain}"
|
"||lab.${domain}^$dnsrewrite=etappi.${sysdomain}"
|
||||||
|
|
||||||
|
@@ -60,12 +60,15 @@ in
|
|||||||
plugins = [ "github.com/caddy-dns/cloudflare@v0.2.1" ];
|
plugins = [ "github.com/caddy-dns/cloudflare@v0.2.1" ];
|
||||||
hash = "sha256-Gsuo+ripJSgKSYOM9/yl6Kt/6BFCA6BuTDvPdteinAI=";
|
hash = "sha256-Gsuo+ripJSgKSYOM9/yl6Kt/6BFCA6BuTDvPdteinAI=";
|
||||||
};
|
};
|
||||||
virtualHosts."grouter.${domain}".extraConfig = ''
|
virtualHosts."*.${domain}".extraConfig = ''
|
||||||
encode
|
encode
|
||||||
tls {
|
tls {
|
||||||
dns cloudflare {env.CF_API_KEY}
|
dns cloudflare {env.CF_API_KEY}
|
||||||
resolvers 1.1.1.1
|
resolvers 1.1.1.1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@grouter host grouter.${domain}
|
||||||
|
handle @grouter {
|
||||||
@grafana path /grafana /grafana/*
|
@grafana path /grafana /grafana/*
|
||||||
handle @grafana {
|
handle @grafana {
|
||||||
reverse_proxy localhost:${toString config.services.grafana.settings.server.http_port}
|
reverse_proxy localhost:${toString config.services.grafana.settings.server.http_port}
|
||||||
@@ -80,6 +83,12 @@ in
|
|||||||
handle /* {
|
handle /* {
|
||||||
reverse_proxy localhost:${toString config.services.glance.settings.server.port}
|
reverse_proxy localhost:${toString config.services.glance.settings.server.port}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@hass host hass.${domain}
|
||||||
|
handle @hass {
|
||||||
|
reverse_proxy homeassistant.4.lab.l.cazzzer.com:8123
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "Yura";
|
description = "Yura";
|
||||||
group = "cazzzer";
|
group = "cazzzer";
|
||||||
extraGroups = [ "wheel" ]
|
extraGroups = [ "wheel" "dialout" ]
|
||||||
++ lib.optionals config.networking.networkmanager.enable [ "networkmanager" ]
|
++ lib.optionals config.networking.networkmanager.enable [ "networkmanager" ]
|
||||||
++ lib.optionals config.virtualisation.docker.enable [ "docker" ]
|
++ lib.optionals config.virtualisation.docker.enable [ "docker" ]
|
||||||
++ lib.optionals config.programs.wireshark.enable [ "wireshark" ]
|
++ lib.optionals config.programs.wireshark.enable [ "wireshark" ]
|
||||||
|
Reference in New Issue
Block a user