caddy
This commit is contained in:
@@ -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}";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user