Notices where this attachment appears
-
@p @meowski @lain Now I'm thinking, this could improve performance by a little bit if pleroma keeps fetching signed fetch actors even when their enforcement is disabled.
location /objects {
proxy_set_header Signature "";
proxy_pass http://pleromer;
}
-
@Zerglingman Yeah, had to add another proxy_set_header. No idea why the one from the server block isn't getting picked up. Final setup for caching AP actors is something like this:
```
location ~ ^/(relay|internal\/fetch|users\/([A-z0-9_-].*))$ {
if ($http_accept ~* "html") {
rewrite ^(.*) /index.html;
}
location ~ ^/(relay|internal\/fetch|users\/([A-z0-9_-].*))\/inbox$ {
proxy_set_header Host $http_host;
proxy_pass http://pleromer;
}
proxy_cache plague_users;
proxy_cache_key $request_uri;
add_header x-cache "$upstream_cache_status from nginx";
proxy_ignore_headers "Cache-Control";
proxy_pass http://pleromer;
proxy_buffering on;
proxy_set_header Accept "application/activity+json";
}
```