Hey,
I am trying to add a manual frotend and backend.
This is my traefik.toml
:
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.dashboard]
address = ":8080"
[entryPoints.dashboard.auth]
[entryPoints.dashboard.auth.basic]
users = ["admin:$apr1$rO3M0/.n$yQPqTfI3dCgvbKfc3PHQP."]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[api]
entrypoint="dashboard"
[acme]
email = "geral@miguelndecarvalho.pt"
storage = "acme.json"
entryPoint = "https"
onHostRule = true
[acme.httpChallenge]
entryPoint = "http"
[docker]
domain = "miguelndecarvalho.pt"
watch = true
network = "web"
[backends]
[backends.plex]
[backends.plex.server]
url = "http://192.168.1.200:32400"
weight = 10
[frontends]
[frontends.plex]
backend = "plex"
[frontends.plex.routes]
rule = "Host: plex.miguelndecarvalho.pt"
Thanks,
Miguel de Carvalho
ldez
2
the backend definition is invalid.
The valid definition:
[backends]
[backends.plex]
[backends.plex.servers]
[backends.plex.servers.server0]
url = "http://192.168.1.200:32400"
weight = 10
1 Like
Hey again,
Really thanks for the help but still not working.
This it the file now:
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.dashboard]
address = ":8080"
[entryPoints.dashboard.auth]
[entryPoints.dashboard.auth.basic]
users = ["admin:$apr1$rO3M0/.n$yQPqTfI3dCgvbKfc3PHQP."]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[api]
entrypoint="dashboard"
[acme]
email = "geral@miguelndecarvalho.pt"
storage = "acme.json"
entryPoint = "https"
onHostRule = true
[acme.httpChallenge]
entryPoint = "http"
[docker]
domain = "miguelndecarvalho.pt"
watch = true
network = "web"
[backends]
[backends.plex]
[backends.plex.servers]
[backends.backend1.servers.server0]
url = "http://192.168.1.200:32400"
weight = 10
[frontends]
[frontends.plex]
backend = "plex"
[frontends.plex.routes]
rule = "Host: plex.miguelndecarvalho.pt"
ldez
4
You have to activate the file
provider:
https://docs.traefik.io/v1.7/configuration/backends/file/#configuration-mode
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.dashboard]
address = ":8080"
[entryPoints.dashboard.auth]
[entryPoints.dashboard.auth.basic]
users = ["admin:$apr1$rO3M0/.n$yQPqTfI3dCgvbKfc3PHQP."]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[api]
entrypoint="dashboard"
[acme]
email = "geral@miguelndecarvalho.pt"
storage = "acme.json"
entryPoint = "https"
onHostRule = true
[acme.httpChallenge]
entryPoint = "http"
[docker]
domain = "miguelndecarvalho.pt"
watch = true
network = "web"
[file] # <-------------
1 Like
Like this ? Sorry but I am noob
defaultEntryPoints = ["http", "https"]
[entryPoints]
[entryPoints.dashboard]
address = ":8080"
[entryPoints.dashboard.auth]
[entryPoints.dashboard.auth.basic]
users = ["admin:$apr1$rO3M0/.n$yQPqTfI3dCgvbKfc3PHQP."]
[entryPoints.http]
address = ":80"
[entryPoints.http.redirect]
entryPoint = "https"
[entryPoints.https]
address = ":443"
[entryPoints.https.tls]
[api]
entrypoint="dashboard"
[acme]
email = "geral@miguelndecarvalho.pt"
storage = "acme.json"
entryPoint = "https"
onHostRule = true
[acme.httpChallenge]
entryPoint = "http"
[docker]
domain = "miguelndecarvalho.pt"
watch = true
network = "web"
[file]
[backends]
[backends.plex]
[backends.plex.servers]
[backends.plex.servers.server0]
url = "http://192.168.1.200:32400"
weight = 10
[frontends]
[frontends.plex]
backend = "plex"
[frontends.plex.routes]
rule = "Host: plex.miguelndecarvalho.pt"