Update example files

This commit is contained in:
whitney 2026-03-17 13:58:59 -07:00
parent f7376b148e
commit 01570bad90
3 changed files with 10 additions and 11 deletions

View File

@ -14,6 +14,7 @@ services:
- "80:80" - "80:80"
- "8080:8080" - "8080:8080"
- "443:443" - "443:443"
- "2222:2222"
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro - /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.toml:/etc/traefik/traefik.toml - ./traefik.toml:/etc/traefik/traefik.toml

View File

@ -1,8 +1,4 @@
[http.middlewares] [http.middlewares]
[http.middlewares.redirect-to-www.redirectRegex]
regex = "^https?://whitney.com(.*)"
replacement = "http://www.whitney.com$${1}"
permanent = true
[http.middlewares.simpleAuth.basicAuth] [http.middlewares.simpleAuth.basicAuth]
users = ["olomana:password_hash"] users = ["olomana:password_hash"]

View File

@ -11,18 +11,21 @@
scheme = "https" scheme = "https"
[entryPoints.websecure] [entryPoints.websecure]
address = ":443" address = ":443"
[entryPoints.websecure.transport.respondingTimeouts]
readTimeout = "512s"
writeTimeout = "512s"
idleTimeout = "512s"
[entryPoints.gitea]
address = ":2222"
[api] [api]
dashboard = true dashboard = true
[file]
watch = true
[certificatesResolvers.lets-encrypt.acme] [certificatesResolvers.lets-encrypt.acme]
email = "runyanjake@gmail.com" email = "runyanjake@gmail.com"
storage = "/etc/acme.json" storage = "/etc/acme.json"
# Use LetsEncrypt Staging Server # Use LetsEncrypt Staging Server
# caServer: "https://acme-staging-v02.api.letsencrypt.org/directory" # caServer = "https://acme-staging-v02.api.letsencrypt.org/directory"
# Use LetsEncrypt Prod Server # Use LetsEncrypt Prod Server
caServer = "https://acme-v02.api.letsencrypt.org/directory" caServer = "https://acme-v02.api.letsencrypt.org/directory"
[certificatesResolvers.lets-encrypt.acme.tlsChallenge] [certificatesResolvers.lets-encrypt.acme.tlsChallenge]
@ -30,12 +33,11 @@
[providers] [providers]
[providers.docker] [providers.docker]
watch = true watch = true
network = "traefik_network" network = "traefik"
[providers.file] [providers.file]
directory = "/etc/traefik/dynamic/" directory = "/etc/traefik/dynamic/"
filename = "traefik-dynamic.toml"
watch = true watch = true
[log] [log]
level = "error" level = "info"