Add support for custom cache sizes

This commit is contained in:
Sebastián Ramírez
2019-09-27 13:44:07 -05:00
parent df8c057855
commit f3d2eefc09
3 changed files with 10 additions and 5 deletions

View File

@@ -42,10 +42,6 @@ http {
keepalive_timeout 300;
gzip off;
# The cache directory. This can get huge. Better to use a Docker volume pointing here!
# Set to 32gb which should be enough
proxy_cache_path /docker_mirror_cache levels=1:2 max_size=32g inactive=60d keys_zone=cache:10m use_temp_path=off;
# Just in case you want to rewrite some hosts. Default maps directly.
map $host $targetHost {
hostnames;
@@ -93,6 +89,8 @@ http {
default "DID_NOT_MATCH_PATH";
}
include /etc/nginx/conf.d/*.conf;
# The proxy director layer, listens on 3128
server {