Created
April 14, 2024 12:28
-
-
Save bestrocker221/afd57aa04e82f4bc61d4962eb09420f8 to your computer and use it in GitHub Desktop.
Example for a Traefik.yml configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
api: | |
insecure: true # Enable the Traefik dashboard (for development) | |
providers: | |
docker: | |
exposedByDefault: false # Only expose containers with labels | |
entryPoints: | |
web: | |
address: ":80" | |
#websecure: | |
#address: "443" | |
http: | |
routers: | |
traefik: | |
rule: "Host(`traefik.deb.ca.local`)" | |
service: traefik | |
middlewares: [] | |
services: | |
traefik: | |
loadBalancer: | |
servers: | |
- url: "http://localhost:8080" | |
middlewares: {} | |
# networks: | |
# default: | |
# external: | |
# name: net-proxy | |
log: | |
level: "DEBUG" | |
filePath: "/logs/traefik.log" | |
accessLog: | |
filePath: "/logs/access.log" | |
bufferingSize: 100 # Configuring a buffer of 100 lines | |
filters: | |
statusCodes: "204-299,400-499,500-599" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment