# traefik/traefik.yml — Traefik v3 config for AI Proxy
api:
  dashboard: true
  insecure: false

entryPoints:
  web:
    address: ":80"
    http:
      redirections:
        entryPoint:
          to: websecure
          scheme: https
  websecure:
    address: ":443"

providers:
  docker:
    endpoint: "unix:///var/run/docker.sock"
    exposedByDefault: false
    network: default

tls:
  stores:
    default:
      defaultGeneratedCert:
        resolver: default
        domain:
          main: "proxym.local"

log:
  level: WARN

accessLog:
  filePath: "/var/log/traefik/access.log"
  bufferingSize: 100

metrics:
  prometheus:
    entryPoint: websecure
