#treafik

1 messages · Page 1 of 1 (latest)

trim gull
#

@fickle pulsar i don't know how thread work on discord but here we go !

fickle pulsar
#

is good

trim gull
#

@fallen gulch if you care

fickle pulsar
#

my setup is slightly different, but it works the same, I have my docker in swarm mode

fallen gulch
#

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)?

trim gull
fickle pulsar
#

yes you can use it similar to a nginx revese proxy

fallen gulch
#

oooh https on everything, too

fickle pulsar
#

ya that too

#

plus you can toss in oauth in between if you want

fallen gulch
#

sort of fills me with dread to think about figuring this out. it took me so long to sort out swag

fickle pulsar
trim gull
#

i couldn't reach home assistant

#

most of the time

fickle pulsar
#

do you own that domain?

trim gull
#

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

fickle pulsar
#

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

trim gull
#
  • --log.level=DEBUG
  • --accesslog=true
#

i didn't have anything to manage file

#

so i didn't put any traefik.yml

fickle pulsar
#

so for example my zwavejs i use the domain zwavejs.collective.lan

fickle pulsar
#

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"
fallen gulch
#

mostly worrying about getting my external access back up

fickle pulsar
#

i have my external access pointed to traefik

fallen gulch
#

i might have to check it out

#

install looks pretty low risk and stupid easy

fickle pulsar
#

my setup's a little more complex because I've been using swarm mode 😛

fallen gulch
#

is this the time i should just go buy a domain from cloudflare?

#

guess it probably doesn't take much to change it, anyway