nix-serve maybe

This commit is contained in:
mjallen18
2025-03-03 15:37:18 -06:00
parent 8dca0cd14a
commit 208f9e5730
191 changed files with 224 additions and 4 deletions

12
hosts/nas/apps/traefik/default.nix Normal file → Executable file
View File

@@ -11,6 +11,7 @@ let
hassUrl = "http://jallen-hass.local:8123";
openWebUIUrl = "http://10.0.1.18:8888";
paperlessUrl = "http://10.0.1.20:28981";
cacheUrl = "http://10.0.1.18:5000";
in
{
networking.firewall = {
@@ -166,6 +167,11 @@ in
url = openWebUIUrl;
}
];
cache.loadBalancer.servers = [
{
url = cacheUrl;
}
];
paperless.loadBalancer.servers = [
{
url = paperlessUrl;
@@ -228,6 +234,12 @@ in
priority = 10;
tls.certResolver = "letsencrypt";
};
cache = {
entryPoints = [ "websecure" ];
rule = "Host(`cache.${domain}`)";
service = "cache";
tls.certResolver = "letsencrypt";
};
# paperless = {
# entryPoints = ["websecure"];
# rule = "Host(`paperless.${domain}`)";