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
|
db
|
||||||
|
|
||||||
# Files
|
# Files
|
||||||
.dashboardUsers
|
|
||||||
.env
|
.env
|
||||||
|
.users
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# /services/traefik/config/dashboard.yml
|
# /services/traefik/config/dashboard/dashboard.yml
|
||||||
|
|
||||||
http:
|
http:
|
||||||
routers:
|
routers:
|
||||||
@@ -13,4 +13,4 @@ http:
|
|||||||
middlewares:
|
middlewares:
|
||||||
traefik-dashboard-auth:
|
traefik-dashboard-auth:
|
||||||
digestAuth:
|
digestAuth:
|
||||||
usersFile: /etc/traefik/config/.dashboardUsers
|
usersFile: /etc/traefik/config/dashboard/.users
|
||||||
@@ -7,11 +7,11 @@ http:
|
|||||||
- https
|
- https
|
||||||
rule: Host(`server.eliasfink.de`)
|
rule: Host(`server.eliasfink.de`)
|
||||||
middlewares:
|
middlewares:
|
||||||
- home-redirect
|
- home-redirection
|
||||||
service: noop@internal
|
service: noop@internal
|
||||||
|
|
||||||
middlewares:
|
middlewares:
|
||||||
home-redirect:
|
home-redirection:
|
||||||
redirectRegex:
|
redirectRegex:
|
||||||
permanent: true
|
permanent: true
|
||||||
regex: ^.+$
|
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:
|
http:
|
||||||
middlewares:
|
middlewares:
|
||||||
default-security:
|
security-headers:
|
||||||
chain:
|
|
||||||
middlewares:
|
|
||||||
- secure-headers
|
|
||||||
secure-headers:
|
|
||||||
headers:
|
headers:
|
||||||
hostsProxyHeaders:
|
hostsProxyHeaders:
|
||||||
- X-Forwarded-Host
|
- X-Forwarded-Host
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# /services/traefik/config/gitea.yml
|
# /services/traefik/config/services/gitea.yml
|
||||||
|
|
||||||
http:
|
http:
|
||||||
routers:
|
routers:
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# /services/traefik/config/hedgedoc.yml
|
# /services/traefik/config/services/hedgedoc.yml
|
||||||
|
|
||||||
http:
|
http:
|
||||||
routers:
|
routers:
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# /services/traefik/config/home-assistant.yml
|
# /services/traefik/config/services/home-assistant.yml
|
||||||
|
|
||||||
http:
|
http:
|
||||||
routers:
|
routers:
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# /services/traefik/config/nextcloud.yml
|
# /services/traefik/config/services/nextcloud.yml
|
||||||
|
|
||||||
http:
|
http:
|
||||||
routers:
|
routers:
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# /services/traefik/config/portainer.yml
|
# /services/traefik/config/services/portainer.yml
|
||||||
|
|
||||||
http:
|
http:
|
||||||
routers:
|
routers:
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
# /services/traefik/config/uptime-kuma.yml
|
# /services/traefik/config/services/uptime-kuma.yml
|
||||||
|
|
||||||
http:
|
http:
|
||||||
routers:
|
routers:
|
||||||
@@ -18,7 +18,7 @@ entryPoints:
|
|||||||
address: :443
|
address: :443
|
||||||
http:
|
http:
|
||||||
middlewares:
|
middlewares:
|
||||||
- default-security
|
- default-chain
|
||||||
tls:
|
tls:
|
||||||
certResolver: letsencrypt
|
certResolver: letsencrypt
|
||||||
|
|
||||||
@@ -34,3 +34,9 @@ certificatesResolvers:
|
|||||||
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