Skip to content

Instantly share code, notes, and snippets.

@tomasmetal23
Created April 20, 2020 14:55
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 tomasmetal23/6ada63e1dfc0c75999c050e1083f8d3a to your computer and use it in GitHub Desktop.
Save tomasmetal23/6ada63e1dfc0c75999c050e1083f8d3a to your computer and use it in GitHub Desktop.
ejemplo de la configuración del archivo .toml del traefik
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.dashboard]
address = ":8080"
[entryPoints.dashboard.auth]
[entryPoints.dashboard.auth.basic]
users = ["aquituhtpasswd"] #linea 8
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[api]
entrypoint="dashboard"
#[file] #<<< configuración manual avanzada de backend y frontend
# watch = true
# filename = "servers.toml"
[acme]
email = "tucorreo"
storage = "acme.json"
acmeLogging=true
onDemand = false #create certificate when container is created
entryPoint = "https"
onHostRule = true
[acme.httpChallenge]
entryPoint = "http"
[acme.dnsChallenge]
provider = "cloudflare"
delayBeforeCheck = 0
[[acme.domains]]
main = "*.tudominio.com"
sans = ["tudominio.com"]
#[[acme.domains]] #<< si queremos usar otro dominio extra
#main = "*.dominioextra.com"
#sans = ["dominioextra.com"]
[docker]
domain = "tudominioprincipal.com"
watch = true
network = "web"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment