traefik_config.yml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. ---
  2. # Traefik main config file
  3. # e.g. /opt/docker/traefik/traefik_config.yml
  4. entryPoints:
  5. web:
  6. address: ":80"
  7. http:
  8. encodeQuerySemicolons: true
  9. redirections:
  10. entryPoint:
  11. to: websecure
  12. scheme: https
  13. permanent: true
  14. websecure:
  15. address: ":443"
  16. asDefault: true
  17. http:
  18. encodeQuerySemicolons: true
  19. tls:
  20. certResolver: letsencrypt
  21. http2:
  22. maxConcurrentStreams: 100
  23. http3: {}
  24. certificatesResolvers:
  25. letsencrypt:
  26. acme:
  27. email: you@example.net
  28. storage: "/acme/letsencrypt.json"
  29. keyType: EC384
  30. httpChallenge:
  31. entryPoint: web
  32. # buypass:
  33. # acme:
  34. # email: you@example.net
  35. # caServer: "https://api.buypass.com/acme/directory"
  36. # storage: "/acme/buypass.json"
  37. # keyType: EC256
  38. # certificatesDuration: 4320
  39. # httpChallenge:
  40. # entryPoint: web
  41. ocsp: {}
  42. tls:
  43. stores:
  44. default:
  45. defaultGeneratedCert:
  46. resolver: letsencrypt
  47. domain:
  48. main: snac.example.net
  49. # sans:
  50. # - other.example.net
  51. # - another.example.net
  52. providers:
  53. file:
  54. directory: "/etc/traefik/dynamic"
  55. watch: true
  56. swarm:
  57. network: "proxy"
  58. endpoint: "unix:///var/run/docker.sock"
  59. exposedByDefault: false
  60. watch: true
  61. allowEmptyServices: true
  62. api:
  63. dashboard: true
  64. insecure: false
  65. debug: false
  66. disabledashboardad: true
  67. log:
  68. level: "INFO"
  69. filePath: "/var/log/server.log"
  70. accessLog:
  71. filePath: "/var/log/traefik-access.log"
  72. bufferingSize: 15
  73. fields:
  74. names:
  75. StartUTC: "drop"
  76. experimental:
  77. plugins:
  78. souin:
  79. moduleName: "github.com/darkweak/souin"
  80. version: "v1.7.7"