r/Traefik • u/notabot-i-promise • 1d ago
r/Traefik • u/chronzz • May 04 '26
[Release] Traefik Manager v1.0.0 is here! Static Config Editor, Plugin Management, and major performance updates.
Hey r/traefik,
I’m excited to announce that Traefik Manager v1.0.0 is officially out!
This release marks a huge milestone for the project, moving beyond simple route management to full configuration control.
Key Highlights in v1.0.0:
- Static Config Editor: You can now manage entrypoints, cert resolvers, providers, and plugins directly from the UI. It includes a raw YAML editor (Monaco) as a fallback, and the install script handles the configuration for you.
- Plugin Management: Easily add, edit, and remove plugins directly from the Plugins tab.
- Overhauled Route Map: Switched to the
dagrelayout engine for much better automatic node positioning. We’ve also added click-to-inspect, hover highlighting, and mobile-friendly pan/pinch-zoom. - Security Upgrades: We've tightened security across the board, including updates to OIDC verification, SSRF logging, and migrating API key hashing from bcrypt to SHA-256.
- Performance: Eliminated O(n²) rendering loops and optimized filter inputs for a much snappier UI experience.
- Cert Resolver "none": You can now explicitly set the cert resolver to
noneif you are handling SSL termination externally.
Upgrading
If you are running v0.12.x, there are no breaking changes! Just pull the latest image and restart:
Bash
docker compose pull && docker compose up -dCheck out the full release notes and docs here:https://github.com/chr0nzz/traefik-manager/releases/tag/v1.0.0
I’d love to hear your feedback, feel free to drop any questions or feature requests in the comments or open an issue on the repo. Happy routing!
r/Traefik • u/PatrolX • May 14 '26
Traefik Proxy v3.7: 85+ Ingress NGINX Annotations and More
Lightweight per-service Traefik monitoring without Prometheus or Grafana
I've been building StatLite, an open-source monitoring dashboard designed for applications running on small servers and VPSs.
Version 0.9.0 adds native Traefik support. StatLite reads Traefik's built-in Prometheus metrics endpoint directly and stores historical data in SQLite.
For each configured Traefik service, it tracks:
- HTTP requests
- 404, 4xx and 5xx responses
- Average response time
- Elevated HTTP 5xx rates, detected automatically
No changes to backend applications are required.
StatLite itself is a single Go binary using around 12 MiB of idle RAM. No separate Prometheus server, Grafana or external monitoring service.
It also supports Caddy and native application monitoring for several Java, Python and Node.js frameworks.
Interactive demo: https://pvrlabs.xyz/statlite/demo.html
Traefik integration guide: https://github.com/PVRLabs/statlite/blob/main/docs/targets/traefik.md
GitHub (MIT): https://github.com/PVRLabs/statlite
I'd be interested in feedback from people running Traefik on small servers and VPSs.
r/Traefik • u/fdelux6 • 5d ago
Traefik Proxy 3.8 "Salers" - A New Orbit for Plugins
r/Traefik • u/Jackson-Pent • 19d ago
Having issues setting up Traefik in docker
I've made a little bit of progress with it but I'm still very much hitting a brick wall right now. I updated to the latest traefik version, I'm now seeing an error that the container has no ip address. I've looked up how to add one to it but no success. Can anyone please help me?
r/Traefik • u/chronzz • 29d ago
Traefik Manager is now on iPhone and iPad
Hey all, the Traefik Manager app is now out on iOS and iPadOS 🎉
If you haven't seen it before, Traefik Manager is a self-hosted web UI for managing Traefik. You can add and edit routes, middlewares and services, and keep an eye on certs, logs and CrowdSec without hand-editing YAML.
The Android app has been around for a while, and now there's a native iOS version too. It's at full feature parity with Android:
- Manage routes, middlewares and services from your phone
- Live logs, CrowdSec bans and cert expiry
- Switch between multiple servers/agents
- Home screen widgets and Face ID lock
- iPad gets a proper sidebar layout
It's free, with no tracking or analytics. It only talks to your own server.
You need Traefik Manager v1.14+ running somewhere and an API key from Settings. There's also a demo mode if you just want to poke around first.
App Store: https://apps.apple.com/us/app/traefik-manager/id6826725061
GitHub: https://github.com/chr0nzz/traefik-manager
Feedback and bug reports are very welcome!
r/Traefik • u/ErnLynM • Nov 01 '26
Completely lost - Thinking Traefick as a reverse proxy for 4 or 5 locally hosted services may be too much
I was wondering if there's any way to configure Traefik through the web dashboard UI. I installed it in a container on my proxmox node with the community scripts. Pretty sure the current install script is an updated version of the one that's been around since tteck was still with us
Traefik's documentation is .. just shy of something. I don't know what it is, but I haven't screamed this many four letter words in a row for at least a decade. I can't find anything at all explaining basic terms for someone who isn't already familiar with Traefik /and/ docker or kubernetes
There's ALMOST some examples for how to configure it in the official documentation. There's a few more VeryNearlyExamples under the docker and kubernetes settings in the docs, but they read like "Now put what you need in your docker compose file (which I don't use) or your helm setup (which I also don't use)". And I don't know what I need to put in those files because nothing in the docs is clearly explaining what sort of things go in there
This leads me to believe that the traefik.yaml file is probably what needs to be modified, but I can't find a single thing in any of the docs yet that explains any of it. Do I just guess what goes where with no clue about Traefix specific options, syntax, and whether my services fall under Routers, Services, or Middlewares?
r/Traefik • u/neuralbeans • Oct 19 '26
Is there a better way to add website containers than putting everything in one Docker Compose file?
From what I understand, the way to connect website Docker containers to Traefik is to put the contents of the websites' compose files into the services list of Traefik's compose files and then load the whole compose file.
Surely there's a way to keep the compose files separate and load them dynamically into Traefik as needed.
r/Traefik • u/Dudefoxlive • Oct 18 '26
Moving from CLI arguments to static config
I am wanting to move from using CLI arguments to a static config with my traefik config. I am unsure if I am doing this correctly so I would like to ask if someone could verify if I did this right. The docs are quite confusing to me and don't always provide an example of how it should be setup. I am providing my current docker compose with some info changed for privacy. Same with the static config that I quickly put together.
services:
traefik:
image: traefik:v3.7
restart: unless-stopped
command:
- "--providers.docker"
- "--api.insecure=false"
- "--providers.docker.exposedbydefault=false"
- "--providers.docker.network=traefik"
- "--providers.file.filename=/traefik-dynamic.yaml"
- "--providers.file.watch=true"
# ACME Configuration
- "--certificatesresolvers.letsencrypt.acme.dnschallenge=true"
- "--certificatesresolvers.letsencrypt.acme.dnschallenge.provider=cloudflare"
- "--certificatesresolvers.letsencrypt.acme.email=myemail@contoso.com
- "--certificatesresolvers.letsencrypt.acme.storage=/letsencrypt/acme.json"
- "--certificatesresolvers.letsencrypt.acme.dnschallenge.resolvers=1.1.1.1:53,8.8.8.8:53
"
- "--certificatesresolvers.letsencrypt.acme.dnschallenge.propagation.requireALLRNS=false
"
# Traefik entrypoint configuration
- "--entryPoints.websecure.address=:443"
- "--entrypoints.web.address=:80"
- "--entrypoints.web.http.redirections.entrypoint.to=websecure"
- "--entrypoints.web.http.redirections.entrypoint.scheme=https"
# Lets Encrypt Configuration
- "--entrypoints.websecure.http.tls=true"
- "--entrypoints.websecure.http.tls.certResolver=letsencrypt"
- "--entrypoints.websecure.http.tls.domains[0].main=int.contoso.com"
- "--entrypoints.websecure.http.tls.domains[0].sans=*.int.contoso.com"
secrets:
- "cloudflare-token"
- "cloudflare-email"
environment:
- "CF_DNS_API_TOKEN_FILE=/run/secrets/cloudflare-token"
- "CF_API_EMAIL_FILE=/run/secrets/cloudflare-email"
- "CLOUDFLARE_POLLING_INTERVAL=10"
- "CLOUDFLARE_PROPAGATION_TIMEOUT=300"
ports:
- 80:80
- 443:443
# - 8080:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./letsencrypt:/letsencrypt
networks:
- net
- traefik
configs:
- traefik-dynamic.yaml
networks:
net: {}
traefik:
external: true
secrets:
cloudflare-token:
file: "./secrets/cloudflare-token.secret"
cloudflare-email:
file: "./secrets/cloudflare-email.secret"
configs:
traefik-dynamic.yaml:
file: ./traefik-dynamic.yaml
# Enable Docker Provider
providers:
docker:
exposedbydefault: false
network: traefik
# Traefik Dashboard
api:
insecure: false
# Traefik Dynamic Configuration
providers:
file:
filename: /traefik-dynamic.yml
watch: true
# ACME Configuration
certificatesresolvers:
letsencrypt:
acme:
dnschallenge: true
provider: cloudflare
resolvers: 1.1.1.1:53,8.8.8.8:53
propagation:
requireALLRNS: false
email: [email protected]
storage: /letsencrypt/acme.json
# Traefik Configuration
entrypoints:
web:
address: :80
http:
redirections:
entrypoint:
to: websecure
scheme: https
websecure:
address: :443
http:
tls: true
certresolver: letsencrypt
domains:
main: int.contoso.com
sans:
- *.int.contoso.com
r/Traefik • u/RocketSeven • Oct 07 '26
What do you verify before retiring an old Traefik instance after a migration?
A replacement Traefik instance can serve the main routes correctly while quieter dependencies still point at the old proxy. DNS records, direct client configuration, webhooks, health checks, certificate resolvers, middleware, provider discovery, trusted-proxy settings, access logs, and low-traffic routers can move on different timelines. A successful certificate issuance during cutover also does not prove that renewal will work later.
A useful retirement gate could compare effective dynamic and static configuration, enumerate every entrypoint and router, test each hostname with the intended SNI and Host header, verify upstream TLS and client-IP handling, and inspect requests on both proxies through an observation window. The destination should survive a restart, configuration reload, provider reconnect, and certificate renewal test. The old instance could then be isolated but recoverable before its state is deleted.
What evidence do Traefik operators require before shutdown? Which state or low-frequency route is easiest to miss, and how do you prove that no client, DNS record, provider, or renewal path still depends on the old instance?
r/Traefik • u/root-node • Oct 05 '26
Not getting it. Internal only access with custom internal (service.lan) domain. Unnecessary?
I have about 40 containers and I am happy with how it's running - it's been stable for quite a while. I thought I would try playing with Traefik to see if I can give my services a DNS name with an internal domain: service.lan.
So something like dozzle would be at http://dozzle.service.lan.
From what I can see it looks like I would need to add an DNS entry into PiHole for every service, so my question is would there be a need of using Traefik for internal only, or am is it just complicating things for no reason?
There is no HTTPS and no external access.
r/Traefik • u/Rtwose • Oct 01 '26
Middleware chains question - geoblock before crowdsec
Hi,
I have a middleware chain that applies (PascalMinder) geoblock, crowdsec, and then basic auth (in that order). From what I can see, geoblock is checking out the IP, determining it should be a block, but still passing traffic on to crowdsec. Crowdsec is then correctly recognising the request as malicious, and actually blocking it.
Any idea why this traffic is being allowed to pass through Geoblock?
I'm using the following config for Geoblock:
[http.middlewares.geoblock]
[http.middlewares.geoblock.plugin]
[http.middlewares.geoblock.plugin.geoblock]
allowLocalRequests = "true"
allowUnknownCountries = "false"
allowedIPAddresses = [<some IPs>]
api = "https://get.geojs.io/v1/ip/country/{ip}"
apiTimeoutMs = "150"
cacheSize = "15"
cacheTtlSeconds = "0"
countries = ["GB","FR"]
forceMonthlyUpdate = "true"
logAllowedRequests = "false"
logApiRequests = "true"
logLocalRequests = "false"
logFilePath = "/log/geoblock.log"
silentStartUp = "false"
unknownCountryApiResponse = "nil"


r/Traefik • u/BadongkaDonk • Sep 30 '26
wildcard/SANS doesn't work when passed through the Docker Compose command section.
command:
# - --entrypoints.web.address=:80
# - --entrypoints.websecure.address=:443
- --entrypoints.websecure.http.tls.domains[0].main=${MY_DOMAIN:?err}
- --entrypoints.websecure.http.tls.domains[0].sans=*.${MY_DOMAIN:?err}
tried quotes in different ways, like the whole command, the line or just the value. The main is recognized just as it is.
Everything works though when the domains are hard coded in my static config.
r/Traefik • u/RocketSeven • Sep 25 '26
How do you verify every Traefik replica is serving the renewed certificate?
A certificate can renew successfully in one Traefik instance while another replica still serves the old chain because its dynamic state, file mount, or restart path differs. Checking through the load balancer may repeatedly hit the healthy replica and hide the stale one until the old certificate expires.
What post-renewal evidence do you collect in a multi-replica deployment? I am considering recording the expected leaf fingerprint and chain, connecting directly to every replica with the same SNI name, checking the certificate exposed through the public load balancer repeatedly, and alerting on the oldest certificate seen rather than only the newest.
How does the answer change when certificates come from Traefik Enterprise, an external certificate controller, or a shared file mounted into OSS Traefik? Is a rolling restart the only dependable convergence point, or is there a metric or API that proves each process loaded the same certificate revision?
r/Traefik • u/SwampFalc • Sep 23 '26
Help me convert Certbot configuration
Hello,
I would like to ask for some assistance, since I'm tryaing and failing to convert my enterprise's Certbot setup to Traefik.
We are client of Harica / GEANT, and are perfectly capable of requesting certificates for our internal servers using the following setup:
# Use ECC for the private key
key-type = ecdsa
elliptic-curve = secp384r1
# Uncomment and update to register with the specified e-mail address
email = sysadmin@<domain>
# Uncomment to use the standalone authenticator on port 443
authenticator = standalone
# Uncomment to automatically agree to the terms of service of the ACME server
agree-tos = true
# An example of using an alternate ACME server that uses EAB credentials
server = https://acme-v02.harica.gr/acme/<redacted>/directory
eab-kid = eJO73N5nsqTJ6S9a0IuF
eab-hmac-key = <redacted>Very important, I think, first we need to do certbot register, but once that's completed we just do certbot certonly --domain <something> --cert-name <name>.
And everything works, even for our fully internal servers, that can reach the internet but that can not be reached from the internet. If I remove the authenticator = standalone stanza it doesn't work, but there's literally no way for the Harica server to reach these machines, I think...
Also note that despite what standalone mode says, I can request wildcard certificates. I think certbot just wants some value there and doesn't actually care what it is.
(For completeness's sake, in the ACME setup we did need to prove domain ownership and all that.)
So I tried to convert that to Traefik settings for Docker Compose:
services:
traefik:
image: traefik:v3.7
command:
# EntryPoints
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--entrypoints.websecure.http.tls=true"
# Providers
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
# ACME
- "--certificatesresolvers.harica.acme.email=sysadmin@<domain>"
- "--certificatesresolvers.harica.acme.caserver=https://acme-v02.harica.gr/acme/<redacted>/directory"
- "--certificatesresolvers.harica.acme.eab.kid=eJO73N5nsqTJ6S9a0IuF"
- "--certificatesresolvers.harica.acme.eab.hmacencoded=<redacted>"
# Observability
- "--log.level=DEBUG"
- "--accesslog=true"
labels:
# Enable self‑routing
- "traefik.enable=true"
# Dashboard router
- "traefik.http.routers.dashboard.rule=Host(`dashboard.ldt.<domain>`)"
- "traefik.http.routers.dashboard.entrypoints=websecure"
- "traefik.http.routers.dashboard.service=api@internal"
- "traefik.http.routers.dashboard.tls=true" It is my understanding that, if this works, the Traefik dashboard itself should now be served using a certificate acquired through ACME.
Except it doesn't work and there aren't even any errors in the log...
I'll trim it a bit, but here's what it shows:
traefik-1 | 2026-09-23T14:33:33Z INF github.com/traefik/traefik/v3/pkg/provider/aggregator/aggregator.go:219 > Starting provider *acme.Provider
traefik-1 | 2026-09-23T14:33:33Z DBG github.com/traefik/traefik/v3/pkg/provider/aggregator/aggregator.go:220 > *acme.Provider provider configuration config={"HTTPChallengeProvider":{},"ResolverName":"harica","TLSChallengeProvider":{},"caServer":"https://acme-v02.harica.gr/acme/<redacted>/directory","certificateTimeout":"30s","certificatesDuration":2160,"clientResponseHeaderTimeout":"30s","clientTimeout":"2m0s","eab":{"hmacEncoded":"xxxx","kid":"xxxx"},"email":"sysadmin@<domain>","keyType":"RSA4096","storage":"acme.json","store":{}}
traefik-1 | 2026-09-23T14:33:33Z DBG github.com/traefik/traefik/v3/pkg/provider/acme/provider.go:255 > Attempt to renew certificates "720h0m0s" before expiry and check every "24h0m0s" acmeCA=https://acme-v02.harica.gr/acme/<redacted>/directory providerName=harica.acme
traefik-1 | 2026-09-23T14:33:33Z INF github.com/traefik/traefik/v3/pkg/provider/acme/provider.go:908 > Testing certificate renew... acmeCA=https://acme-v02.harica.gr/acme/<redacted>/directory providerName=harica.acme
traefik-1 | 2026-09-23T14:33:33Z INF github.com/traefik/traefik/v3/pkg/provider/aggregator/aggregator.go:219 > Starting provider *acme.ChallengeTLSALPN
traefik-1 | 2026-09-23T14:33:33Z DBG github.com/traefik/traefik/v3/pkg/provider/aggregator/aggregator.go:220 > *acme.ChallengeTLSALPN provider configuration config={}
traefik-1 | 2026-09-23T14:33:33Z DBG github.com/traefik/traefik/v3/pkg/server/configurationwatcher.go:248 > Configuration received config={"http":{"models":{"websecure":{"observability":{},"tls":{}}},"serversTransports":{"default":{"maxIdleConnsPerHost":200}},"services":{"api":{},"dashboard":{},"noop":{}}},"tcp":{"serversTransports":{"default":{"dialKeepAlive":"15s","dialTimeout":"30s"}}},"tls":{},"udp":{}} providerName=internal
traefik-1 | 2026-09-23T14:33:33Z DBG github.com/traefik/traefik/v3/pkg/server/configurationwatcher.go:248 > Configuration received config={"http":{},"tcp":{},"tls":{},"udp":{}} providerName=harica.acme
traefik-1 | 2026-09-23T14:33:33Z DBG github.com/traefik/traefik/v3/pkg/provider/docker/pdocker.go:80 > Provider connection established with docker 28.1.1 (API 1.49) providerName=docker
traefik-1 | 2026-09-23T14:33:33Z DBG github.com/traefik/traefik/v3/pkg/tls/tlsmanager.go:398 > No default certificate, fallback to the internal generated certificate tlsStoreName=defaultDoes anyone see what I'm doing wrong? Feel free to ask for clarifications.
r/Traefik • u/chronzz • Sep 20 '26
Traefik Manager is getting translated, looking for translators and reviewers
I maintain Traefik Manager, a self-hosted web UI for managing Traefik: routers, services, middlewares, certificates, CrowdSec, with an agent for multi-server setups. GPL-3.0, no paid tier.
The next release is the first one that won't be English-only. The interface is fully extracted, 3,334 strings, and translation is open on Weblate:
https://hosted.weblate.org/projects/traefik-manager/
German, French, Spanish, Chinese (Simplified) and Russian are set up. Ask and I'll add any other language. Everything is at 0%, so there's plenty to do, and even a handful of strings helps.
What I actually need most is one reviewer per language. Traefik Manager edits live proxy config and deletes routers, so a mistranslated confirmation button is a destructive bug rather than a cosmetic one. A language only ships once someone has agreed to check the rest. Translations can't inject markup or change placeholders either, the checks reject that, and everything is escaped when rendered.
If you use Traefik in a language other than English and have a spare hour, that's the ask. Language requests and questions go here: https://github.com/chr0nzz/tm-locale
Happy to answer anything about the setup, it's gettext + Weblate with pull requests back into the repo.
r/Traefik • u/pwieczyk • Sep 18 '26
BasicAuth with external users
Hi,
is it possible to use basic auth with traefik where users are not hardcoded in traefik yaml or docker label?
I am using traefik as reverse proxy for my VPS server. Almost everything is hidden by WireGuard VPN but I would like to expose 1 or 2 services and hide them behind basic auth.
I see in the documentation possibility to configure basic auth middleware but it assumes that list of users is either hardcoded in yaml configuration or hardcoded as docker label.
I see all the time SSO solutions [forwardauth] but I see it as some corporate nonsense. I need to allow terminal programs to access those services -- I cannot understand idea of having 'web browser' involved.
r/Traefik • u/gilbn • Sep 09 '26
GeoMetrikks - live map/dashboard for Traefik access logs

Wanted to share an app I've been working for the last couple of months now.
It reads Traefik JSON access logs and gives you a live map of where requests are coming from, plus some stats and searchable logs.
You can also click into an IP and see what it’s been hitting, paths, user agents, status codes etc.
There’s CrowdSec integration as well if you use that.
CrowdSec integration | GeoMetrikks
Multi-source setup | GeoMetrikks
Couple of features:
- Live request map
- Multi-source support
- Search/filter access logs
- Click into an IP and see what it’s been hitting
- Traffic stats, status codes and response times
- CrowdSec integration
- Docker Compose setup
- Self-hosted and open source
r/Traefik • u/Lone_Assassin • Aug 23 '26
Need Help Making Traefik Swarm Work
UPDATE: So, narrowed it down to a (very) odd issue.
The services are hosted on the same servers that is currently running Traefik behind a common AP, they work absolutely fine, but services belonging to the other AP become unreachable even though I see that those servers are part of the swarm and contains the overlay network that I created (alongside default swarm networks)
For e.g.:
Scenario 1:
- Traefik swarm hosted on Server A behind Acess Point 1 (check diagram below):
- Services on Server A and Server B work perfectly
- Services on Server C and Server D become unreachable
Scenario 2:
- Traefik swarm hosted on Server C behind Acess Point 2 (check diagram below):
- Services on Server C and Server D work perfectly
- Services on Server A and Server B become unreachable
- No helpful log enry generated
I checked the ports and connectivity between the nodes, and everything checks out. I am at my wit's end at this point.
Hey,
Hoping to get some help from folks who are much smarter and more experienced in homelabbing than me.
Brief description of my configuration:
- Traefik swarm on 4 nodes (3 managers + 1 worker) running inside ubuntu VMs on 4 separate Proxmox physical instances
- OPNsense on bare metal as router / firewall
- 2 wired APs
I am using host override features under Services > Unbound in OPNsense to redirect my local domains to my server IP
Now the problem is that all this is working perfectly when I am using a single server defined in the host override section, but once I host a service in any different server, the traefik returns bad gateway error or goes into infinite looping, I tried defining all 4 server IPs in host override for round robin but it didn't work as well.
Important thing to note here is that prior moving to OPNsense this week, I tried to make the swarm work with Technitium as the local dns and defined zones to achieve the same objective but again it used to work fine for a single server but not for all.
I have been going through various forums for weeks now but can't seem to figure out the missing piece in my setup or a completely different setup that works.
I would really appreciate for some pointers, willing to provide any more information to help resolve this issue.
Attaching my network architecture
TIA

docker-stack.yml:
services:
traefik:
image: traefik:v3.7
# container_name: traefik
hostname: '{{.Node.Hostname}}'
# security_opt:
# - no-new-privileges:true
networks:
- proxy-swarm
ports:
# listen on host ports without ingress network
- target: 80
published: 80
protocol: tcp
mode: host
- target: 443
published: 443
protocol: tcp
mode: host
- 443:443/udp # Uncomment if you want HTTP3
environment:
CF_DNS_API_TOKEN_FILE: /run/secrets/cf_api_token # note using _FILE for docker secrets
# CF_DNS_API_TOKEN: ${CF_DNS_API_TOKEN} # if using .env
TRAEFIK_DASHBOARD_CREDENTIALS: xxxx
secrets:
- cf_api_token
# env_file: .env # use .env
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- /docker/traefik/data/traefik.yml:/traefik.yml:ro
- /docker/traefik/data/acme.json:/acme.json
- /docker/traefik/config.yml:/config.yml:ro
- /docker/traefik/traefik.log:/var/log/traefik.log
deploy:
mode: global
restart_policy:
condition: on-failure
placement:
constraints:
- node.role == manager
labels:
- "traefik.enable=true"
- "traefik.http.routers.traefik.entrypoints=http"
- "traefik.http.routers.traefik.rule=Host(`traefik-dashboard.example.cc`)"
# - "traefik.http.middlewares.traefik-auth.basicauth.users=${TRAEFIK_DASHBOARD_CREDENTIALS}"
- "traefik.http.middlewares.traefik-auth.basicauth.users=xxxx"
- "traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.default-headers.headers.customRequestHeaders.X-Forwarded-Proto=https"
- "traefik.http.routers.traefik.middlewares=traefik-https-redirect"
- "traefik.http.routers.traefik-secure.entrypoints=https"
- "traefik.http.routers.traefik-secure.rule=Host(`traefik-dashboard.example.com`)"
- "traefik.http.routers.traefik-secure.middlewares=traefik-auth"
- "traefik.http.routers.traefik-secure.tls=true"
- "traefik.http.routers.traefik-secure.tls.certresolver=cloudflare"
- "traefik.http.routers.traefik-secure.tls.domains[0].main=example.com"
- "traefik.http.routers.traefik-secure.tls.domains[0].sans=*.example.com"
- "traefik.http.routers.traefik-secure.service=api@internal"
- "traefik.http.services.dummy-svc.loadbalancer.server.port=9999"
secrets:
cf_api_token:
file: /docker/traefik/cf_api_token.txt
networks:
proxy-swarm:
external: truetraefik.yml:
api:
dashboard:
true
debug:
true
log:
filePath: "/var/log/traefik.log"
format: json
level: ERROR
accessLog:
# JSON format
format: json
# Filter on status codes, retry attempts and minimal duration
filters:
statusCodes:
- "400-599"
retryAttempts:
true
minDuration: "10ms"
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
swarm:
endpoint: "unix:///var/run/docker.sock"
exposedByDefault:
false
network: proxy-swarm
file:
filename: /config.yml
certificatesResolvers:
cloudflare:
acme:
email: xxxx
storage: acme.json
caServer: https://acme-v02.api.letsencrypt.org/directory # prod (default)
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"config.yml:
middlewares:
https-redirectscheme:
redirectScheme:
scheme: https
permanent:
true
default-headers:
headers:
frameDeny:
true
browserXssFilter:
true
contentTypeNosniff:
true
forceSTSHeader:
true
stsIncludeSubdomains:
true
stsPreload:
true
stsSeconds: 15552000
customFrameOptionsValue: SAMEORIGIN
customRequestHeaders:
X-Forwarded-Proto: https
default-whitelist:
ipAllowList:
sourceRange:
- "172.20.0.0/16"
- "192.168.0.0/24"
secured:
chain:
middlewares:
- default-whitelist
- default-headersr/Traefik • u/Ich_bin_da • Aug 15 '26
Stop default 404 response
Hey, simple question really, how do I stop traefik from responding with http 404 by default. Id rather drop the TCP Connection. Currently you have to have a Catch All with a wildcard cert to answer with a 301 or what not which is a bit wird...
Hope someone has an answer
Greetings from a Fan