You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ OR
17
17
docker run --name imagecdn -v /my/images/location:/var/lib/images -e API_KEY=EnterAdminKey -d pcpl2/easy_image_cdn:0.2.1
18
18
```
19
19
20
-
This command launches the application with image conversion to 1024x720 and 800x600 enabled, with a maximum file size of 10Mb and your api key.
20
+
This command launches the application with image conversion to 1024x720 and 800x600 enabled, with a maximum file size of 10Mb and your API key.
21
21
22
22
23
23
### Example docker-compose config
@@ -55,9 +55,9 @@ Payload:
55
55
56
56
#### Public:
57
57
58
-
`http://localhost:9555/{Your image id}`-> Has return source image (if you have `image/webp` in accept header server will return the image in webp format).
58
+
`http://localhost:9555/{Your image id}`-> Has returned source image (if you have `image/webp` in accept header server will return the image in webp format).
59
59
60
-
For get image in coverted resolution you add resolution value after image id. Example:
60
+
To get the image in converted resolution, you add a resolution value after the image id. Example:
61
61
`http://localhost:9555/{Your image id}/1024x720`
62
62
63
63
## Configuration
@@ -76,9 +76,9 @@ MAX_FILE_SIZE=10
76
76
| Configuration key | Default value | Description |
77
77
| ----------- | --------- | ----------- |
78
78
| API_KEY | 00000000-0000-0000-0000-000000000000 | Api key for upload images |
79
-
| API_KEY_HEADER | key | Header name for api key in request. |
79
+
| API_KEY_HEADER | key | Header name for an API key in the request. |
80
80
| CONVERT_TO_RES | 1024x720,800x600 | List of resolutions to which images will be converted. |
81
-
| MAX_FILE_SIZE | 10 | Maximum size of file sent to the application in megabytes. |
81
+
| MAX_FILE_SIZE | 10 | Maximum size of the file sent to the application in megabytes. |
82
82
| CACHE_TIME | 30 | Image cache lifetime set in minutes. |
0 commit comments