fix(koi): better caching for pds

This commit is contained in:
alina 🌸 2024-11-24 02:34:55 +03:00
parent 0266770c55
commit e751e0e108
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -55,5 +55,13 @@ in {
proxyPass = "http://bluesky-pds.docker:3000$request_uri"; proxyPass = "http://bluesky-pds.docker:3000$request_uri";
proxyWebsockets = true; proxyWebsockets = true;
}; };
locations."/xrpc/com.atproto.sync.getBlob" = {
proxyPass = "http://bluesky-pds.docker:3000$request_uri";
extraConfig = ''
proxy_hide_header "cache-control";
add_header "cache-control" "public, immutable, no-transform, stale-while-revalidate=31536000, max-age=31536000";
'';
};
}; };
} }