daredevil001

traefik.yml

Jan 4th, 2022 (edited)
575
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.30 KB | None | 0 0
  1. api:
  2.   dashboard: true
  3.  
  4. entryPoints:
  5.   http:
  6.     address: ":80"
  7.     # http:
  8.     #   redirections:
  9.     #     entrypoint:
  10.     #       to: https
  11.     #       scheme: https
  12.   https:
  13.     address: ":443"
  14.  
  15. http:
  16.   routers:
  17.     http-catchall:
  18.       rule: hostregexp(`{host:.+}`)
  19.       entrypoints:
  20.      - http
  21.       middlewares:
  22.      - redirect-to-https
  23.   middlewares:
  24.     redirect-to-https:
  25.       redirectScheme:
  26.         scheme: https
  27.         permanent: false
  28.  
  29. providers:
  30.   docker: true
  31.     # endpoint: "unix:///var/run/docker.sock"
  32.     # ## Do not expose all Docker services, only the ones explicitly exposed
  33.     # exposedByDefault: false
  34.     # # constraints: "Label(`traefik.constraint-label`, `traefik`)"
  35.  
  36. certificatesResolvers:
  37.   letsEncrypt:
  38.     acme:
  39.       email: postmaster@domain.com
  40.       storage: acme.json
  41.       caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
  42.       # dnsChallenge:
  43.       #   provider: acme-dns # replace this with your dns provider https://doc.traefik.io/traefik/https/acme/
  44.       httpChallenge:
  45.         entryPoint: http
  46.  
  47. tls:
  48.   options:
  49.     default:
  50.       sniStrict: true
  51.  
  52. # dnsChallenge:
  53. #   provider: cloudflare
  54.  
  55. log:
  56.   level: DEBUG
  57.   # filePath: "/var/log/traefik.log"
  58.  
  59. # accesslog:
  60.   # filePath: "/var/log/traefik_accesslog.log"
Add Comment
Please, Sign In to add comment