Added favicon html injection and ico redirection
This commit is contained in:
@@ -5,5 +5,6 @@ http:
|
|||||||
default-chain:
|
default-chain:
|
||||||
chain:
|
chain:
|
||||||
middlewares:
|
middlewares:
|
||||||
- favicon-injection
|
- favicon-html-injection
|
||||||
|
- favicon-ico-redirection
|
||||||
- security-headers
|
- security-headers
|
||||||
22
traefik/config/middlewares/favicon.yml
Normal file
22
traefik/config/middlewares/favicon.yml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# /services/traefik/config/middlewares/favicon.yml
|
||||||
|
|
||||||
|
http:
|
||||||
|
middlewares:
|
||||||
|
favicon-html-injection:
|
||||||
|
plugin:
|
||||||
|
rewritebody:
|
||||||
|
lastModified: true
|
||||||
|
rewrites:
|
||||||
|
- regex: <\/head>
|
||||||
|
replacement: |
|
||||||
|
<link rel="icon" type="image/png" sizes="96x96" href="https://static.eliasfink.de/img/favicon/favicon-96x96.png"/>
|
||||||
|
<link rel="icon" type="image/svg+xml" href="https://static.eliasfink.de/img/favicon/favicon.svg"/>
|
||||||
|
<link rel="shortcut icon" href="https://static.eliasfink.de/img/favicon/favicon.ico"/>
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="https://static.eliasfink.de/img/favicon/apple-touch-icon.png"/>
|
||||||
|
<link rel="manifest" href="https://static.eliasfink.de/img/favicon/site.webmanifest"/>
|
||||||
|
</head>
|
||||||
|
favicon-ico-redirection:
|
||||||
|
redirectRegex:
|
||||||
|
permanent: true
|
||||||
|
regex: ^.+\/favicon\.ico$
|
||||||
|
replacement: https://static.eliasfink.de/img/favicon/favicon.ico
|
||||||
Reference in New Issue
Block a user