Compare commits
4 Commits
18d51daac0
...
258363cd86
| Author | SHA1 | Date | |
|---|---|---|---|
| 258363cd86 | |||
| 27345d39cd | |||
| 30ff558f1d | |||
| d396a9b070 |
@@ -1,4 +1,4 @@
|
|||||||
# /services/traefik/config/home.yml
|
# /services/traefik/config/home-redirection.yml
|
||||||
|
|
||||||
http:
|
http:
|
||||||
routers:
|
routers:
|
||||||
|
|||||||
@@ -5,6 +5,5 @@ http:
|
|||||||
default-chain:
|
default-chain:
|
||||||
chain:
|
chain:
|
||||||
middlewares:
|
middlewares:
|
||||||
# - favicon-html-injection
|
- favicon-redirection
|
||||||
- favicon-ico-redirection
|
|
||||||
- security-headers
|
- security-headers
|
||||||
9
traefik/config/middlewares/favicon-redirection.yml
Normal file
9
traefik/config/middlewares/favicon-redirection.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# /services/traefik/config/middlewares/favicon-redirection.yml
|
||||||
|
|
||||||
|
http:
|
||||||
|
middlewares:
|
||||||
|
favicon-redirection:
|
||||||
|
redirectRegex:
|
||||||
|
permanent: true
|
||||||
|
regex: ^.+\/favicon\.ico$
|
||||||
|
replacement: https://static.eliasfink.de/img/favicon/favicon.ico
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
# /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
|
|
||||||
@@ -33,10 +33,4 @@ certificatesResolvers:
|
|||||||
# caServer: https://acme-staging-v02.api.letsencrypt.org/directory # use staging server instead of production
|
# caServer: https://acme-staging-v02.api.letsencrypt.org/directory # use staging server instead of production
|
||||||
email: mail@eliasfink.de
|
email: mail@eliasfink.de
|
||||||
storage: /etc/traefik/certs/acme.json
|
storage: /etc/traefik/certs/acme.json
|
||||||
tlsChallenge: {}
|
tlsChallenge: {}
|
||||||
|
|
||||||
experimental:
|
|
||||||
plugins:
|
|
||||||
rewritebody:
|
|
||||||
moduleName: "github.com/traefik/plugin-rewritebody"
|
|
||||||
version: "v0.3.1"
|
|
||||||
Reference in New Issue
Block a user