Skip to content

TinyAuth Integration

TinyAuth est un middleware d'authentification léger pour Traefik.

Configuration

Labels Traefik

labels:
  - "traefik.http.middlewares.auth.forwardauth.address=http://tinyauth:3000/auth"
  - "traefik.http.middlewares.auth.forwardauth.trustForwardHeader=true"

Variables d'environnement TinyAuth

APP_URL=http://tinyauth:3000
SECRET=your-secret-key
USERS=admin:$2y$...  # bcrypt hash

Utilisation

Appliquer le middleware à un service :

labels:
  - "traefik.http.routers.myservice.middlewares=auth"

Liens