Skip to content

Instantly share code, notes, and snippets.

@bestrocker221
Created April 14, 2024 12:28
Show Gist options
  • Save bestrocker221/afd57aa04e82f4bc61d4962eb09420f8 to your computer and use it in GitHub Desktop.
Save bestrocker221/afd57aa04e82f4bc61d4962eb09420f8 to your computer and use it in GitHub Desktop.
Example for a Traefik.yml configuration
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