forked from indymedia/epicyon
nginx cache
parent
5e5ebfb201
commit
3bd90969a0
|
@ -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;
|
||||
|
|
|
@ -1408,21 +1408,21 @@
|
|||
proxy_buffering on;<br>
|
||||
proxy_cache my_cache;<br>
|
||||
proxy_cache_use_stale error timeout http_500 http_502 http_503 http_504;<br>
|
||||
location ~ ^/(icons|images|media|emoji)/(.*)/(.*).png {<br>
|
||||
location ~ ^/(icons|images|media|emoji)/(.*)/(.*).(png|jpg|gif|webp|mp3|ogv|ogg|mp4) {<br>
|
||||
expires 7d;<br>
|
||||
proxy_pass http://localhost:7156;<br>
|
||||
}<br>
|
||||
location ~ ^/icons/(.*)/(like|repeat|calendar)(.*).png {<br>
|
||||
location ~ ^/icons/(.*)/(like|repeat|calendar)(.*).(png|jpg|gif|webp|mp3|ogv|ogg|mp4) {<br>
|
||||
expires epoch;<br>
|
||||
proxy_no_cache 1;<br>
|
||||
proxy_pass http://localhost:7156;<br>
|
||||
}<br>
|
||||
location ~ ^/icons/(like|repeat|calendar)(.*).png {<br>
|
||||
location ~ ^/icons/(like|repeat|calendar)(.*).(png|jpg|gif|webp|mp3|ogv|ogg|mp4) {<br>
|
||||
expires epoch;<br>
|
||||
proxy_no_cache 1;<br>
|
||||
proxy_pass http://localhost:7156;<br>
|
||||
}<br>
|
||||
location ~ ^/users/(.*)/(image|banner).png {<br>
|
||||
location ~ ^/users/(.*)/(image|banner).(png|jpg|gif|webp|mp3|ogv|ogg|mp4) {<br>
|
||||
expires epoch;<br>
|
||||
proxy_no_cache 1;<br>
|
||||
proxy_pass http://localhost:7156;<br>
|
||||
|
|
Loading…
Reference in New Issue