Compare commits
6 Commits
e2acc4c6a7
...
18d51daac0
| Author | SHA1 | Date | |
|---|---|---|---|
| 18d51daac0 | |||
| f025ac2549 | |||
| 1c614cfa7c | |||
| 1bff8a1f7f | |||
| 9df7e14493 | |||
| 0d20b7911b |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -5,5 +5,5 @@ data
|
||||
db
|
||||
|
||||
# Files
|
||||
.dashboardUsers
|
||||
.env
|
||||
.users
|
||||
@@ -1,4 +1,4 @@
|
||||
# /services/traefik/config/dashboard.yml
|
||||
# /services/traefik/config/dashboard/dashboard.yml
|
||||
|
||||
http:
|
||||
routers:
|
||||
@@ -13,4 +13,4 @@ http:
|
||||
middlewares:
|
||||
traefik-dashboard-auth:
|
||||
digestAuth:
|
||||
usersFile: /etc/traefik/config/.dashboardUsers
|
||||
usersFile: /etc/traefik/config/dashboard/.users
|
||||
@@ -7,11 +7,11 @@ http:
|
||||
- https
|
||||
rule: Host(`server.eliasfink.de`)
|
||||
middlewares:
|
||||
- home-redirect
|
||||
- home-redirection
|
||||
service: noop@internal
|
||||
|
||||
middlewares:
|
||||
home-redirect:
|
||||
home-redirection:
|
||||
redirectRegex:
|
||||
permanent: true
|
||||
regex: ^.+$
|
||||
10
traefik/config/middlewares/default.yml
Normal file
10
traefik/config/middlewares/default.yml
Normal file
@@ -0,0 +1,10 @@
|
||||
# /services/traefik/config/middlewares/default-chain.yml
|
||||
|
||||
http:
|
||||
middlewares:
|
||||
default-chain:
|
||||
chain:
|
||||
middlewares:
|
||||
# - favicon-html-injection
|
||||
- favicon-ico-redirection
|
||||
- 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
|
||||
@@ -1,12 +1,8 @@
|
||||
# /services/traefik/config/security.yml
|
||||
# /services/traefik/config/middlewares/security-headers.yml
|
||||
|
||||
http:
|
||||
middlewares:
|
||||
default-security:
|
||||
chain:
|
||||
middlewares:
|
||||
- secure-headers
|
||||
secure-headers:
|
||||
security-headers:
|
||||
headers:
|
||||
hostsProxyHeaders:
|
||||
- X-Forwarded-Host
|
||||
@@ -1,4 +1,4 @@
|
||||
# /services/traefik/config/gitea.yml
|
||||
# /services/traefik/config/services/gitea.yml
|
||||
|
||||
http:
|
||||
routers:
|
||||
@@ -1,4 +1,4 @@
|
||||
# /services/traefik/config/hedgedoc.yml
|
||||
# /services/traefik/config/services/hedgedoc.yml
|
||||
|
||||
http:
|
||||
routers:
|
||||
@@ -1,4 +1,4 @@
|
||||
# /services/traefik/config/home-assistant.yml
|
||||
# /services/traefik/config/services/home-assistant.yml
|
||||
|
||||
http:
|
||||
routers:
|
||||
@@ -1,4 +1,4 @@
|
||||
# /services/traefik/config/nextcloud.yml
|
||||
# /services/traefik/config/services/nextcloud.yml
|
||||
|
||||
http:
|
||||
routers:
|
||||
@@ -1,4 +1,4 @@
|
||||
# /services/traefik/config/portainer.yml
|
||||
# /services/traefik/config/services/portainer.yml
|
||||
|
||||
http:
|
||||
routers:
|
||||
@@ -1,4 +1,4 @@
|
||||
# /services/traefik/config/uptime-kuma.yml
|
||||
# /services/traefik/config/services/uptime-kuma.yml
|
||||
|
||||
http:
|
||||
routers:
|
||||
@@ -18,7 +18,7 @@ entryPoints:
|
||||
address: :443
|
||||
http:
|
||||
middlewares:
|
||||
- default-security
|
||||
- default-chain
|
||||
tls:
|
||||
certResolver: letsencrypt
|
||||
|
||||
@@ -34,3 +34,9 @@ certificatesResolvers:
|
||||
email: mail@eliasfink.de
|
||||
storage: /etc/traefik/certs/acme.json
|
||||
tlsChallenge: {}
|
||||
|
||||
experimental:
|
||||
plugins:
|
||||
rewritebody:
|
||||
moduleName: "github.com/traefik/plugin-rewritebody"
|
||||
version: "v0.3.1"
|
||||
Reference in New Issue
Block a user