if ($http_accept = "application/activity+json") {
set $proxpass "http://0.0.0.0:{{ lemmy_port }}";
}
+ if ($http_accept = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") {
+ set $proxpass "http://0.0.0.0:{{ lemmy_port }}";
+ }
if ($request_method = POST) {
set $proxpass "http://0.0.0.0:{{ lemmy_port }}";
}
if ($http_accept = "application/activity+json") {
set $proxpass http://lemmy-alpha;
}
+ if ($http_accept = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") {
+ set $proxpass http://lemmy-alpha;
+ }
proxy_pass $proxpass;
proxy_set_header X-Real-IP $remote_addr;
if ($http_accept = "application/activity+json") {
set $proxpass http://lemmy-beta;
}
+ if ($http_accept = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") {
+ set $proxpass http://lemmy-beta;
+ }
proxy_pass $proxpass;
proxy_set_header X-Real-IP $remote_addr;
if ($http_accept = "application/activity+json") {
set $proxpass http://lemmy-gamma;
}
+ if ($http_accept = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") {
+ set $proxpass http://lemmy-gamma;
+ }
proxy_pass $proxpass;
proxy_set_header X-Real-IP $remote_addr;
if ($http_accept = "application/activity+json") {
set $proxpass http://lemmy-delta;
}
+ if ($http_accept = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") {
+ set $proxpass http://lemmy-delta;
+ }
proxy_pass $proxpass;
proxy_set_header X-Real-IP $remote_addr;
if ($http_accept = "application/activity+json") {
set $proxpass http://lemmy-epsilon;
}
+ if ($http_accept = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") {
+ set $proxpass http://lemmy-epsilon;
+ }
proxy_pass $proxpass;
proxy_set_header X-Real-IP $remote_addr;