Update Jafner.tools traefik to parity with jafner.net

This commit is contained in:
Joey Hafner 2022-07-22 18:31:26 -07:00
parent b5c9d49248
commit 006913ca5a
5 changed files with 65 additions and 19 deletions

View File

@ -0,0 +1,27 @@
http:
middlewares:
lan-only:
ipWhiteList:
sourceRange:
- "127.0.0.1/32"
- "192.168.1.1/24"
securityheaders:
headers:
customResponseHeaders:
X-Robots-Tag: "none,noarchive,nosnippet,notranslate,noimageindex"
server: ""
sslProxyHeaders:
X-Forwarded-Proto: https
referrerPolicy: "same-origin"
hostsProxyHeaders:
- "X-Forwarded-Host"
customRequestHeaders:
X-Forwarded-Proto: "https"
X-Scheme: https
contentTypeNosniff: true
browserXssFilter: true
forceSTSHeader: true
stsIncludeSubdomains: true
stsSeconds: 63072000
stsPreload: true

View File

@ -0,0 +1,8 @@
http:
routers:
api:
rule: "Host(`traefik.jafner.tools`)"
entryPoints: "websecure"
service: "api@internal"
tls:
certResolver: "lets-encrypt"

View File

@ -11,7 +11,8 @@ services:
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.toml:/traefik.toml
- ./traefik.yaml:/traefik.yaml
- ./config:/config
- $DOCKER_DATA/acme.json:/acme.json
networks:
web:

View File

@ -1,18 +0,0 @@
[entryPoints]
[entryPoints.web]
address = ":80"
[entryPoints.web.http.redirections.entryPoint]
to = "websecure"
scheme = "https"
[entryPoints.websecure]
address = ":443"
[certificatesResolvers.lets-encrypt.acme]
email = "jafner425@gmail.com"
storage = "acme.json"
caServer = "https://acme-v02.api.letsencrypt.org/directory"
[certificatesResolvers.lets-encrypt.acme.tlsChallenge]
[providers.docker]
watch = true
network = "web"

View File

@ -0,0 +1,28 @@
entryPoints:
web:
address: :80
http:
redirections:
entryPoint:
to: websecure
scheme: https
websecure:
address: :443
certificatesResolvers:
lets-encrypt:
acme:
email: jafner425@gmail.com
storage: acme.json
tlsChallenge: {}
api:
insecure: true
dashboard: true
providers:
docker:
watch: true
network: web
file:
directory: /config