Skip to content

Instantly share code, notes, and snippets.

@daloulou
Created December 14, 2020 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daloulou/0012a2072c27d47080b4f3c94c005939 to your computer and use it in GitHub Desktop.
Save daloulou/0012a2072c27d47080b4f3c94c005939 to your computer and use it in GitHub Desktop.
Traefik static configuration file to add SSL on Azure Container Instance
defaultEntryPoints = ["http", "https"]
[acceslog]
[entryPoints]
[entryPoints.http]
address = ":80"
[entryPoints.http.http]
[entryPoints.http.http.redirections]
[entryPoints.http.http.redirections.entryPoint]
to = "https"
scheme = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.http.tls]
certResolver = "le"
[log]
level="DEBUG"
[api]
dashboard = true
[providers]
[providers.file]
filename = "/etc/traefik/services/example-api.toml"
[certificatesResolvers.le.acme]
storage = "/acme.json"
email = "youremailadress"
caServer = "https://acme-v02.api.letsencrypt.org/directory"
[certificatesResolvers.le.acme.httpChallenge]
entryPoint = "http"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment