#treafik
1 messages · Page 1 of 1 (latest)
is good
@fallen gulch if you care
my setup is slightly different, but it works the same, I have my docker in swarm mode
does it simplify things like using duckdns for broader access instead of individual configs? like can i point to traefik instead of specific items (right now i have HA and photoprism accessible via swag)?
here was my stack on a standalone docker
https://pastebin.com/FQGJAjcU
yes you can use it similar to a nginx revese proxy
oooh https on everything, too
sort of fills me with dread to think about figuring this out. it took me so long to sort out swag
first i don't recommend using a path for something like zwavejs2mqtt
do you own that domain?
some time it worked and i had no idea why
yes
almost always got some 404 on treafik log, and even in debug it didn't give me more intel on why
that is why i gived up, if the thing don't give me log to debug, then i can't debug the thing
did you enable debug logging? in the traefik.yml?
# Writing Logs to a File
log:
level: ERROR
filePath: "/etc/traefik/traefik.log"
# accessLog:
# filePath: "/etc/traefik/access.log"
also helpful for debugging
i have mine commented out
- --log.level=DEBUG
- --accesslog=true
i didn't have anything to manage file
so i didn't put any traefik.yml
so for example my zwavejs i use the domain zwavejs.collective.lan
it's pretty easy once you get the hang of it
these are the only labels I use on my traefik:
labels:
traefik.enable: "false"
traefik.http.middlewares.redirect-to-https.redirectscheme.scheme: https
traefik.http.routers.http-catchall.entrypoints: web
traefik.http.routers.http-catchall.middlewares: redirect-to-https@docker
traefik.http.routers.http-catchall.rule: hostregexp(`{host:.+}`)
my providers setup:
# Docker configuration backend
providers:
docker:
swarmMode: true
exposedByDefault: false
network: traefik_public
file:
directory: /etc/traefik/dynamic
watch: true
if you're not using swarmmode you don't need that nor the network setting
MQTT labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik_public"
- "traefik.tcp.services.mqtt.loadbalancer.server.port=1883"
- "traefik.tcp.routers.mqtt.rule=HostSNI(`*`)"
- "traefik.tcp.routers.mqtt.entrypoints=mqtt"
mostly worrying about getting my external access back up
i have my external access pointed to traefik
my setup's a little more complex because I've been using swarm mode 😛