(Just- migrated this instance over to kubernetes… just testing federation…)

  • HTTP_404_NotFound@lemmyonline.comOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    Oh sweet, here, I will share my lovely ingressroute in return… to replace the nginx stuff everyone else is using.

    apiVersion: traefik.containo.us/v1alpha1
    kind: IngressRoute
    metadata:
      name: lemmy
      namespace: lemmy
    spec:
      entryPoints:
        - websecure
      routes:
        - kind: Rule
          match: Host(`lemmyonline.com`) && (Headers(`Accept`, `application/activity+json`) || Headers(`Accept`, `application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"`))
          services:
            - name: lemmy
              port: http
        - kind: Rule
          match: Host(`lemmyonline.com`) && (PathPrefix(`/api`) || PathPrefix(`/pictrs`) || PathPrefix(`/feeds`) || PathPrefix(`/nodeinfo`) || PathPrefix(`/.well-known`))
          services:
            - name: lemmy
              port: http
        - kind: Rule
          match: Host(`lemmyonline.com`) && Method(`POST`)
          services:
            - name: lemmy
              port: http
        - kind: Rule
          match: Host(`lemmyonline.com`)
          services:
            - name: lemmy-ui
              port: http
    

    Thanks!

    Edit- could be consolidated down to only two rules, I left it expanded out to be a tad easier to read.