Skip to content

Instantly share code, notes, and snippets.

@nikhiljohn10
Created August 4, 2022 05:52
Show Gist options
  • Select an option

  • Save nikhiljohn10/47c9c076c9855ce179d7430c775cd0c3 to your computer and use it in GitHub Desktop.

Select an option

Save nikhiljohn10/47c9c076c9855ce179d7430c775cd0c3 to your computer and use it in GitHub Desktop.
Traefik Configuration with TLS
global:
checkNewVersion: true
sendAnonymousUsage: false
log:
level: ERROR
filePath: /var/log/traefik-log.log
accessLog:
filePath: /var/log/traefik-access.log
entryPoints:
web:
address: ":80"
http:
redirections:
entryPoint:
to: websecure
websecure:
address: :443
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
network: donet
tls:
certificates:
- certFile: "/certs/domain.crt"
keyFile: "/certs/domain.key"
stores:
- default
stores:
default:
defaultCertificate:
certFile: "/certs/domain.crt"
keyFile: "/certs/domain.key"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment