Add security headers and tighten tls requirements.

This commit is contained in:
Joey Hafner 2022-11-14 14:18:44 -08:00
parent d52115d114
commit 59e2411528
11 changed files with 24 additions and 2 deletions

View File

@ -14,6 +14,8 @@ services:
labels:
- traefik.http.routers.5etools.rule=Host(`5e.jafner.tools`)
- traefik.http.routers.5etools.tls.certresolver=lets-encrypt
- traefik.http.routers.5etools.tls.options=tls12@file
- traefik.http.routers.5etools.middlewares=securityheaders@file
networks:
web:

View File

@ -14,7 +14,8 @@ services:
labels:
- traefik.http.routers.joplin.rule=Host(`joplin.jafner.tools`)
- traefik.http.routers.joplin.tls.certresolver=lets-encrypt
#- traefik.http.middlewares.joplin.headers.customrequestheaders.X-Forwarded-Proto = http
- traefik.http.routers.joplin.tls.options=tls12@file
- traefik.http.routers.joplin.middlewares=securityheaders@file
- traefik.http.services.joplin.loadbalancer.server.port=22300
- traefik.http.services.joplin.loadbalancer.passhostheader=true
joplin_db:

View File

@ -16,6 +16,8 @@ services:
labels:
- traefik.http.routers.librespeed.rule=Host(`speedtest.jafner.tools`)
- traefik.http.routers.librespeed.tls.certresolver=lets-encrypt
- traefik.http.routers.librespeed.tls.options=tls12@file
- traefik.http.routers.librespeed.middlewares=securityheaders@file
networks:
web:

View File

@ -14,6 +14,8 @@ services:
labels:
- traefik.http.routers.traccar.rule=Host(`traccar.jafner.tools`)
- traefik.http.routers.traccar.tls.certresolver=lets-encrypt
- traefik.http.routers.traccar.tls.options=tls12@file
- traefik.http.routers.traccar.middlewares=securityheaders@file
- traefik.http.services.traccar.loadbalancer.server.port=8082
networks:
- web

View File

@ -0,0 +1,4 @@
tls:
options:
tls12:
minVersion: VersionTLS12

View File

@ -13,6 +13,8 @@ services:
labels:
- traefik.http.routers.vaultwarden.rule=Host(`bitwarden.jafner.tools`)
- traefik.http.routers.vaultwarden.tls.certresolver=lets-encrypt
- traefik.http.routers.vaultwarden.tls.options=tls12@file
- traefik.http.routers.vaultwarden.middlewares=securityheaders@file
networks:
web:
external: true

View File

@ -21,6 +21,8 @@ services:
labels:
- traefik.http.routers.wg-easy.rule=Host(`vpn.jafner.tools`)
- traefik.http.routers.wg-easy.tls.certresolver=lets-encrypt
- traefik.http.routers.wg-easy.tls.options=tls12@file
- traefik.http.routers.wg-easy.middlewares=securityheaders@file
- traefik.http.services.wg-easy.loadbalancer.server.port=51821
networks:

View File

@ -88,6 +88,8 @@ services:
labels:
- traefik.http.routers.gitlab.rule=Host(`gitlab.jafner.net`)
- traefik.http.routers.gitlab.tls.certresolver=lets-encrypt
- traefik.http.routers.gitlab.tls.options=tls12@file
- traefik.http.routers.gitlab.middlewares=securityheaders@file
- traefik.http.routers.gitlab.service=gitlab
- traefik.http.services.gitlab.loadbalancer.server.port=80
- traefik.http.routers.gitlab-registry.rule=Host(`registry.gitlab.jafner.net`)

View File

@ -22,7 +22,8 @@ services:
labels:
- traefik.http.routers.grafana.rule=Host(`grafana.jafner.net`)
- traefik.http.routers.grafana.tls.certresolver=lets-encrypt
#- traefik.http.routers.grafana.middlewares=authelia@file
- traefik.http.routers.grafana.tls.options=tls12@file
- traefik.http.routers.grafana.middlewares=securityheaders@file
prometheus:
image: prom/prometheus:latest

View File

@ -66,6 +66,8 @@ services:
labels:
- traefik.http.routers.ombi.rule=Host(`ombi.jafner.net`)
- traefik.http.routers.ombi.tls.certresolver=lets-encrypt
- traefik.http.routers.ombi.tls.options=tls12@file
- traefik.http.routers.ombi.middlewares=securityheaders@file
- traefik.http.services.ombi.loadbalancer.server.port=3579
networks:

View File

@ -22,6 +22,8 @@ services:
labels:
- traefik.http.routers.send.rule=Host(`send.jafner.net`)
- traefik.http.routers.send.tls.certresolver=lets-encrypt
- traefik.http.routers.send.tls.options=tls12@file
- traefik.http.routers.send.middlewares=securityheaders@file
- traefik.http.services.send.loadbalancer.server.port=1234
#- traefik.http.routers.send.middlewares=