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