The tricky part is that the UI and backend traffic need to go through the same host url. The answer is provided in one of the GitHub issues.
this post was submitted on 07 Jul 2023
4 points (83.3% liked)
Lemmy Support
4651 readers
1 users here now
Support / questions about Lemmy.
founded 6 years ago
MODERATORS
have you been able to get anything to load through the Træfik router?
This worked for me...
For lemmy
:
labels:
- traefik.enable=true
- traefik.http.routers.lemmy.rule=Host(`lemmy.example.com`) && (PathPrefix(`/api/`, `/pictrs/`, `/feeds/`, `/nodeinfo/`, `/.well-known/`) || Method(`POST`) || HeadersRegexp(`accept`, `^application/.*`))
- traefik.http.routers.lemmy.entrypoints=websecure
- traefik.http.services.lemmy.loadbalancer.server.port=8536
For lemmy-ui
:
labels:
- traefik.enable=true
- traefik.http.routers.lemmy-ui.rule=Host(`lemmy.example.com`)
- traefik.http.routers.lemmy-ui.entrypoints=websecure