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

  •  rs5th   ( @rs5th@lemmy.scottlabs.io ) 
    link
    fedilink
    English
    arrow-up
    11
    ·
    3 years ago

    If anyone else has made it this far and are thinking “ah balls, I’m using ingress-nginx”, here’s the ingress annotation for you!

    nginx.ingress.kubernetes.io/configuration-snippet: |
                if ($http_accept = "application/activity+json") {
                  set $proxy_upstream_name "lemmy-lemmy-8536";
                }
                if ($http_accept = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") {
                  set $proxy_upstream_name "lemmy-lemmy-8536";
                }
                if ($request_method = POST) {
                  set $proxy_upstream_name "lemmy-lemmy-8536";
                }