1
submitted 2 years ago by Rearsays@lemmy.ml to c/lemmy_support@lemmy.ml
    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

you are viewing a single comment's thread
view the rest of the comments
[-] rglullis@communick.news 2 points 1 year ago

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
[-] Rearsays@lemmy.ml 1 points 1 year ago

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

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

Lemmy Support

4651 readers
1 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS