forked from indymedia/epicyon
nginx cache
This commit is contained in:
1 parent
5e5ebfb201
commit
3bd90969a0
2 files changed
+7
-7
No files matched your search
@@ -128,16 +128,16 @@ And paste the following:
|
||||
proxy_buffering on;
|
||||
proxy_cache my_cache;
|
||||
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;
|
||||
location ~ ^/(icons|images|media|emoji)/(.*)/(.*).png {
|
||||
location ~ ^/(icons|images|media|emoji)/(.*)/(.*).(png|jpg|gif|webp|mp3|ogv|ogg|mp4) {
|
||||
expires 7d;
|
||||
proxy_pass http://localhost:7156;
|
||||
}
|
||||
location ~ ^/icons/(.*)/(like|repeat|calendar)(.*).png {
|
||||
location ~ ^/icons/(.*)/(like|repeat|calendar)(.*).(png|jpg|gif|webp|mp3|ogv|ogg|mp4) {
|
||||
expires epoch;
|
||||
proxy_no_cache 1;
|
||||
proxy_pass http://localhost:7156;
|
||||
}
|
||||
location ~ ^/icons/(like|repeat|calendar)(.*).png {
|
||||
location ~ ^/icons/(like|repeat|calendar)(.*).(png|jpg|gif|webp|mp3|ogv|ogg|mp4) {
|
||||
expires epoch;
|
||||
proxy_no_cache 1;
|
||||
proxy_pass http://localhost:7156;
|
||||
|
||||
Reference in new issue
Block a user