api:
dashboard: true
debug: true
entryPoints:
http:
address: ":80"
http:
redirections:
entryPoint:
to: https
scheme: https
https:
address: ":443"
serversTransport:
insecureSkipVerify: true
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
certificatesResolvers:
cloudflare:
acme:
email: youremail@email.com
storage: acme.json
# caServer: https://acme-v02.api.letsencrypt.org/directory # prod (default)
caServer: https://acme-staging-v02.api.letsencrypt.org/directory # staging
dnsChallenge:
provider: cloudflare
#disablePropagationCheck: true # uncomment this if you have issues pulling certificates through cloudflare, By setting this flag to true disables the need to wait for the propagation of the TXT record to all authoritative name servers.
#delayBeforeCheck: 60s # uncomment along with disablePropagationCheck if needed to ensure the TXT record is ready before verification is attempted
resolvers:
- "1.1.1.1:53"
- "1.0.0.1:53"
http:
address: ":80"
http:
redirections:
entryPoint:
to: https
scheme: https
https:
address: ":443"
serversTransport:
insecureSkipVerify: true
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
# file:
# filename: /config.yml
certificatesResolvers:
cloudflare:
acme:
email: email@email.com
storage: acme.json
#caServer: https://acme-v02.api.letsencrypt.org/directory # prod (default)
caServer: https://acme-staging-v02.api.letsencrypt.org/directory # staging
dnsChallenge:
provider: cloudflare
#disablePropagationCheck: true # uncomment this if you have issues pulling certificates through cloudflare, By setting this flag to true disables the need to wait for the propagation of the TXT record to all authori>
#delayBeforeCheck: 60s # uncomment along with disablePropagationCheck if needed to ensure the TXT record is ready before verification is attempted
resolvers:
- "1.1.1.1:53"
- "1.0.0.1:53"
But now while trying to access dashboard I’m getting the error:
Now I don’t get any errors while running sudo docker logs traefik
Traefik has also fetched certs through letsencrypt using cloudflare api confirmed through the cert being provided while trying to access random subdomains through traefik
# VARIABLE=value #comment
TRAEFIK_DASHBOARD_CREDENTIALS= # use password without special characters like ! $ have had problems with those
TRAEFIK_YAML=/mnt/.../Appdata/Traefik/eConfig/traefik.yml
TRAEFIK_CONFIG=/mnt/.../Appdata/Traefik/eConfig/config.yml
TRAEFIK_CERTS=/mnt/.../Appdata/Traefik/data/acme.json
TRAEFIK_LOGS=/mnt/.../Appdata/Traefik/logs
TRAEFIK_PLUGINS=/mnt/.../Appdata/Traefik/data/plugins
#change yourdomain to what your actual domain you want to use this with to
TRAEFIK_DN=traefik-dashboard.yourdomain
FQDN=local.yourdomain
SDN=*.local.yourdomain
CFT: #use your cloudflare token here
TZ=
Regarding the password for traefik dashboard do take a look at these links:
api:
dashboard: true
debug: true
entryPoints:
http:
address: ":80"
http:
middlewares: # CHANGE MADE HERE (BOUNCER ENABLED) !!!
- "crowdsec@file"
redirections:
entryPoint:
to: https
scheme: https
https:
address: ":443"
http: # CHANGE MADE HERE (BOUNCER ENABLED) !!!
middlewares: # CHANGE MADE HERE (BOUNCER ENABLED) !!!
- "crowdsec@file"
serversTransport:
insecureSkipVerify: true
providers:
docker:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault: false
file:
filename: /etc/traefik/config.yml
certificatesResolvers:
cloudflare:
acme:
email: youremail@email.com #enter your email here
storage: acme.json
#caServer: https://acme-v02.api.letsencrypt.org/directory # prod (default)
caServer: https://acme-staging-v02.api.letsencrypt.org/directory # staging
dnsChallenge:
provider: cloudflare
#disablePropagationCheck: true # uncomment this if you have issues pulling certificates through cloudflare, By setting this flag to true disables the need to wait for the propagation of the TXT record to all authoritative name servers.
#delayBeforeCheck: 60s # uncomment along with disablePropagationCheck if needed to ensure the TXT record is ready before verification is attempted
resolvers:
- "1.1.1.1:53"
- "1.0.0.1:53"
experimental:
plugins:
crowdsec-bouncer-traefik-plugin:
moduleName: "github.com/maxlerebourg/crowdsec-bouncer-traefik-plugin"
version: "v1.3.4"
Nginx proxy manager may not be as sexy but it works well for me. Then again if something is on port 8000, nothing is gonna work on that port until it changes.