lancachenet / monolithic

A monolithic lancache service capable of caching all CDNs in a single instance
https://hub.docker.com/r/lancachenet/monolithic
Other
725 stars 73 forks source link

Dockerfile: Change CACHE_DISK_SIZE to be in gigabyte (g) #151

Closed koenvdheuvel closed 1 year ago

koenvdheuvel commented 1 year ago

g or G are both valid values for the max_size parameter since this is considered an offset value in the nginx code. I think this is a bit clearer then a 100000m value :)

See: https://github.com/nginx/nginx/blob/master/src/http/ngx_http_file_cache.c#L2490 https://github.com/nginx/nginx/blob/master/src/core/ngx_parse.c#L59

This change ran in production on the latest version of lancachenet/docker-compose during Frag-o-Matic 23.0 (2-4 September 2022)

Related PR: https://github.com/lancachenet/docker-compose/pull/30