Image delivery from storage of AWS S3 / GCS contents with Resizing and Caching
50K+
Image delivery from storage of AWS S3 / GCS contents with Resizing and Caching
| Method | endpoint | usage |
|---|---|---|
| GET | / | Get image file using query options |
| POST | / | Upload image file with bearer token of authorization header |
| GET | /files | Get non-image file using 'key' query option only |
| POST | /files | Upload non-image file with bearer token of authorization header |
| GET | /streaming | Get non-image file using 'key' query option only with HTTP Streaming |
| GET | /info | Get file (Content-Type / Content-Length) info using 'key' and 'nonusecache' query option only |
| GET | /token | Get bearer token (Only IP addresses restricted by TOKENAPI_ALLOW_IPS can be requested) |
| env | param |
|---|---|
| VERIFY_MODE | enable / disable |
| LOG_MODE | minimum / few or empty |
| ADMIN_MODE | enable / disable |
| SERVER_PORT | 8080, 80, etc (When starting on port 80, specify root as the startup user.) |
| TOKENAPI_ALLOW_IPS | 72.22.0.1/24,127.0.0.1/32(separate with comma) |
| CACHE_TYPE | redis / gocache |
| REDISHOST | x.x.x.x |
| REDISPORT | 6379 |
| REDISTLS | use or empty |
| REDISPASSWORD | |
| CACHEDDB | 0~ |
| CACHEEXPIED | 300 (seconds) |
| HEADEREXPIRED | 300 (seconds) |
| STORAGE_TYPE | s3 / gcs |
| AWS_S3_LOCALUSE | skipverify or empty |
| AWS_S3_REGION | |
| AWS_S3_BUKET | |
| AWS_S3_ACCESSKEY | |
| AWS_S3_SECRETKEY | |
| AWS_S3_ENDPOINT | (use with minio) |
| GCS_BUKET | |
| GCS_PROJECTID | |
| GOOGLE_APPLICATION_CREDENTIALS | |
| TOKEN_SECRET | (use with jwt token when upload images) |
| VALIDATE_IMAGE_TYPE | jpeg,gif,png,bmp,tiff |
| VALIDATE_IMAGE_MAXWIDTH | 5000 (px) |
| VALIDATE_IMAGE_MAXHEIGHT | 5000 (px) |
| VALIDATE_IMAGE_MAXFILESIZE | 104857600 (byte) |
Content type
Image
Digest
sha256:74eca5958…
Size
32.3 MB
Last updated
2 days ago
docker pull drvitaminc/imagereductor