1
This commit is contained in:
2024-01-16 23:50:59 +02:00
parent eb5691d342
commit 8f2268782b
3 changed files with 22 additions and 3 deletions

View File

@@ -1,4 +1,7 @@
e11sync-backend: {
{
e11sync-backend,
e11sync-frontend,
}: {
config,
lib,
...
@@ -22,6 +25,7 @@ e11sync-backend: {
type = path;
default = "/var/lib/e11sync-backend/db.sqlite3";
};
vhost = lib.mkOption {type = str;};
};
config = let
@@ -74,5 +78,8 @@ e11sync-backend: {
];
};
};
services.caddy.virtualHosts."${cfg.vhost}".extraConfig =
builtins.readFile "${e11sync-frontend}";
};
}