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