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
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user