fix path
This commit is contained in:
@@ -55,20 +55,15 @@ let
|
|||||||
normalizeProfile containerCfg.extra.default
|
normalizeProfile containerCfg.extra.default
|
||||||
else
|
else
|
||||||
null;
|
null;
|
||||||
faviconPathPatterns = [
|
traefikAssetPathRegexp =
|
||||||
"favicon(-[0-9]+x[0-9]+)?(\\.(ico|png|svg))?"
|
|
||||||
"fav(icon)?(-[0-9]+x[0-9]+)?\\.(ico|png|svg)"
|
|
||||||
"apple-icon(-[0-9]+)?(\\.(ico|png))?"
|
|
||||||
"apple-touch-icon(-precomposed)?\\.png"
|
|
||||||
"android-chrome-[0-9]+x[0-9]+\\.png"
|
|
||||||
"mstile-[0-9]+x[0-9]+\\.png"
|
|
||||||
"logo\\.ico"
|
|
||||||
];
|
|
||||||
traefikAssetPathRegexp =
|
|
||||||
"^/(.*/)?"
|
"^/(.*/)?"
|
||||||
+ "("
|
+ "(fav(icon)?(-[0-9]+x[0-9]+)?\\.(ico|png|svg)"
|
||||||
+ lib.concatStringsSep "|" faviconPathPatterns
|
+ "|(favicon|apple-icon)(-[0-9]+)?(\\.(ico|png))?"
|
||||||
+ ")$";
|
+ "|logo\\.(ico)"
|
||||||
|
+ "|fav([0-9]+)?\\.(ico|png)"
|
||||||
|
+ "|apple-touch-icon(-precomposed)?\\.png"
|
||||||
|
+ "|android-chrome-[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;
|
||||||
inherit borderRadius;
|
inherit borderRadius;
|
||||||
|
|||||||
Reference in New Issue
Block a user