Merge pull request #25 from borzaka/patch-2

Update README with the correct default environment variables
This commit is contained in:
James Kinsman 2019-06-23 01:11:08 +01:00 committed by GitHub
commit 70d454d6e8
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