fix
This commit is contained in:
@@ -7,6 +7,7 @@ let
|
|||||||
priority = toString (containerCfg.extra.priority or 2147482647);
|
priority = toString (containerCfg.extra.priority or 2147482647);
|
||||||
logoSvgFileName = builtins.baseNameOf (toString mediaCfg.logo.svg);
|
logoSvgFileName = builtins.baseNameOf (toString mediaCfg.logo.svg);
|
||||||
logoSvgMount = "/assets/${logoSvgFileName}";
|
logoSvgMount = "/assets/${logoSvgFileName}";
|
||||||
|
borderRadius = toString config.colorScheme.palette.border-radius;
|
||||||
hostMappings = lib.mapAttrs' (mapping: profile:
|
hostMappings = lib.mapAttrs' (mapping: profile:
|
||||||
lib.nameValuePair
|
lib.nameValuePair
|
||||||
(if lib.hasInfix "." mapping then mapping else "${mapping}.${serverCfg.domain}")
|
(if lib.hasInfix "." mapping then mapping else "${mapping}.${serverCfg.domain}")
|
||||||
@@ -21,7 +22,7 @@ let
|
|||||||
+ "|mstile-[0-9]+x[0-9]+\\.png)$";
|
+ "|mstile-[0-9]+x[0-9]+\\.png)$";
|
||||||
configFile = pkgs.writeText "favicon-config.json" (builtins.toJSON {
|
configFile = pkgs.writeText "favicon-config.json" (builtins.toJSON {
|
||||||
inherit cacheControl;
|
inherit cacheControl;
|
||||||
borderRadius = config.colorScheme.palette.border-radius;
|
borderRadius = borderRadius;
|
||||||
mappings = hostMappings;
|
mappings = hostMappings;
|
||||||
default = containerCfg.extra.default or null;
|
default = containerCfg.extra.default or null;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user