This commit is contained in:
soraefir
2026-06-08 20:03:32 +02:00
parent 3c3245b450
commit c5d16b282d

View File

@@ -55,20 +55,15 @@ let
normalizeProfile containerCfg.extra.default normalizeProfile containerCfg.extra.default
else else
null; 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 =
"^/(.*/)?" "^/(.*/)?"
+ "(" + "(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;