this post was submitted on 05 Feb 2022
1 points (100.0% liked)

Lemmy Support

4622 readers
10 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 
    deploy:
      replicas: 1
      placement:
        constraints:
          - node.hostname == web
      labels:
        - "traefik.enable=true"
        - "traefik.http.routers.lemmy.tls=true"
        - "traefik.http.services.lemmy.loadbalancer.server.port=1234"
        - "traefik.http.routers.lemmy.rule=Host(`lemmy.example.com`)"
        - "traefik.http.routers.lemmy.entrypoints=websecure"
        - "traefik.http.routers.lemmy.tls.certresolver=letsencryptresolver"
        - "traefik.http.routers.lemmy.service=lemmy"
        - "traefik.docker.network=traefik"
        - 'traefik.http.routers.lemmy.middlewares=authelia@docker'

c/lemmy_support

top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago (1 children)

Did you get it to work? Im also want to deploy Lemmy with traefik

[–] [email protected] 2 points 1 year ago (1 children)
[–] [email protected] 2 points 1 year ago (1 children)

I shared this a little while back with my labels, hopefully this could help: https://lemmy.chiisana.net/post/264

Another thing to note is that since other instances will be pushing data too your instance, you’d need to remove the Authelia middleware else they won’t be able to send things back to your instance.

Hope this helps!

[–] [email protected] 1 points 1 year ago

Reasonable I’m usually only adding Authelia when in dev mode.

[–] [email protected] 2 points 1 year ago (1 children)

You should also look into the accept headers, and request method:

  • anything that comes with "application/*" should go to the backend (required for activity streams JSON and webfinger queries)
  • any POST request should go to backend
  • if no previous match, then it should go to frontend
[–] [email protected] 1 points 1 year ago

I’ll post what I’ve sleuthed out so far.