extraConfig: use mkDefault
This commit is contained in:
parent
7d6143a832
commit
ce0521ef77
|
@ -82,6 +82,7 @@ in {
|
|||
};
|
||||
|
||||
services.caddy.virtualHosts."${cfg.vhost}".extraConfig =
|
||||
builtins.readFile "${e11sync-caddyfile}";
|
||||
lib.mkDefault
|
||||
(builtins.readFile "${e11sync-caddyfile}");
|
||||
};
|
||||
}
|
||||
|
|
8
vm.nix
8
vm.nix
|
@ -1,4 +1,8 @@
|
|||
{pkgs, ...}: {
|
||||
{
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
e11sync = {
|
||||
enable = true;
|
||||
migrateOnStart = true;
|
||||
|
@ -13,7 +17,7 @@
|
|||
auto_https off
|
||||
debug
|
||||
'';
|
||||
virtualHosts."http://:8003".extraConfig = ''
|
||||
virtualHosts."http://:8003".extraConfig = lib.mkForce ''
|
||||
redir / /admin/
|
||||
${builtins.readFile "${pkgs.e11sync-caddyfile}"}
|
||||
'';
|
||||
|
|
Loading…
Reference in New Issue