fix(koi): better caching for pds
This commit is contained in:
parent
0266770c55
commit
e751e0e108
1 changed files with 8 additions and 0 deletions
|
@ -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";
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue