Documentation Index
Fetch the complete documentation index at: https://mintlify.com/traefik/traefik/llms.txt
Use this file to discover all available pages before exploring further.
HTTPS & TLS Overview
Traefik provides comprehensive support for HTTPS and TLS, enabling secure communication for your services with minimal configuration.How It Works
HTTPS & TLS in Traefik involves two main components:Router Configuration
Configure routers to handle HTTPS traffic by enabling the
tls field in your router definition.Quick Start
Here’s a minimal example to enable HTTPS:Router TLS Configuration
To enable TLS on a router, add thetls configuration:
Certificate Sources
Traefik supports multiple ways to obtain certificates:Automatic (ACME/Let’s Encrypt)
- Zero configuration for common scenarios
- Automatic renewal before expiration
- Multiple challenge types: HTTP-01, TLS-ALPN-01, DNS-01
- Wildcard support via DNS challenge
Manual Configuration
- Custom certificates from any CA
- Self-signed certificates for development
- Corporate PKI certificates
Key Features
Automatic HTTPS
Traefik automatically obtains and renews certificates from Let’s Encrypt with zero downtime.
SNI Routing
Route traffic based on Server Name Indication (SNI) to serve multiple domains from a single IP.
TLS Options
Configure minimum TLS versions, cipher suites, and client authentication (mTLS).
Certificate Stores
Organize and manage certificates with built-in certificate stores.
Automatic HTTPS Redirection
Redirect HTTP traffic to HTTPS automatically:TLS Versions
Traefik supports the following TLS versions:- TLS 1.0 (deprecated, not recommended)
- TLS 1.1 (deprecated, not recommended)
- TLS 1.2 (recommended minimum)
- TLS 1.3 (recommended)
By default, Traefik uses TLS 1.2 as the minimum version with secure cipher suites.
Security Best Practices
Use TLS 1.2+
Set
minVersion: VersionTLS12 or higher in your TLS options to disable older, insecure protocols.Common Use Cases
Development Environment
Production with Let’s Encrypt
Multi-Domain Configuration
Next Steps
ACME Configuration
Configure Let’s Encrypt and other ACME providers for automatic certificate management.
TLS Configuration
Learn about TLS options, cipher suites, and client authentication.