Update config.json and README.md

This commit is contained in:
n0vad3v 2021-12-12 20:47:23 +08:00
parent 88dcc9c873
commit 5e1ede1585
No known key found for this signature in database
GPG Key ID: 8D42A0E699E50639
2 changed files with 9 additions and 12 deletions

View File

@ -32,12 +32,13 @@ Download the `webp-server` from [release](https://github.com/webp-sh/webp_server
The default `config.json` may look like this. The default `config.json` may look like this.
```json ```json
{ {
"HOST": "127.0.0.1", "HOST": "127.0.0.1",
"PORT": "3333", "PORT": "3333",
"QUALITY": "80", "QUALITY": "80",
"IMG_PATH": "/path/to/pics", "IMG_PATH": "/path/to/pics",
"EXHAUST_PATH": "/path/to/exhaust", "EXHAUST_PATH": "/path/to/exhaust",
"ALLOWED_TYPES": ["jpg","png","jpeg"] "ALLOWED_TYPES": ["jpg","png","jpeg","bmp"],
"ENABLE_AVIF": false
} }
``` ```

View File

@ -4,10 +4,6 @@
"QUALITY": "80", "QUALITY": "80",
"IMG_PATH": "./pics", "IMG_PATH": "./pics",
"EXHAUST_PATH": "./exhaust", "EXHAUST_PATH": "./exhaust",
"ALLOWED_TYPES": [ "ALLOWED_TYPES": ["jpg","png","jpeg","bmp"],
"jpg", "ENABLE_AVIF": false
"png",
"jpeg",
"bmp"
]
} }