mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-26 06:31:04 +01:00
Added mp3 caching
This commit is contained in:
parent
7c1732a39b
commit
1d19fe0fbe
@ -14,8 +14,8 @@ location /
|
|||||||
proxy_read_timeout 300;
|
proxy_read_timeout 300;
|
||||||
send_timeout 300;
|
send_timeout 300;
|
||||||
|
|
||||||
# cache images
|
# cache media files
|
||||||
location ~* \.(gif|ico|jpg|jpeg|png|svg)$ {
|
location ~* \.(gif|ico|jpg|jpeg|png|svg|mp4|mp3|pdf)$ {
|
||||||
proxy_cache cache;
|
proxy_cache cache;
|
||||||
proxy_cache_key $host$uri$is_args$args;
|
proxy_cache_key $host$uri$is_args$args;
|
||||||
proxy_cache_valid 200 301 302 365dm;
|
proxy_cache_valid 200 301 302 365dm;
|
||||||
|
@ -11,7 +11,7 @@ http
|
|||||||
default_type text/html;
|
default_type text/html;
|
||||||
|
|
||||||
# caching
|
# caching
|
||||||
proxy_cache_path /tmp/cache levels=1:2 keys_zone=cache:10m max_size=10g inactive=7d use_temp_path=off;
|
proxy_cache_path /tmp/cache levels=1:2 keys_zone=cache:20m max_size=20g inactive=14d use_temp_path=off;
|
||||||
|
|
||||||
# logs
|
# logs
|
||||||
access_log syslog:server=unix:/dev/log;
|
access_log syslog:server=unix:/dev/log;
|
||||||
|
Loading…
Reference in New Issue
Block a user