Update README with the correct default environment variables

Plus add CACHE_MAX_AGE variable to example
This commit is contained in:
Attila 2019-03-13 17:55:32 +01:00 committed by GitHub
parent 97501a00e7
commit 2204c00379
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,13 +109,13 @@ CACHE_DISK_SIZE 1000000m
In addition, there is an environment variable to control the max cache age
```
CACHE_MAX_AGE 3650d
CACHE_MAX_AGE 3560d
````
You can override these at run time by adding the following to your docker run command. They accept the standard nginx notation for sizes (k/m/g/t) and durations (m/h/d)
```
-e CACHE_MEM_SIZE=4000m -e CACHE_DISK_SIZE=1000g
-e CACHE_MEM_SIZE=4000m -e CACHE_DISK_SIZE=1000g -e CACHE_MAX_AGE 3560d
```
## Tuning your cache