https://github.com/phucpnt/image-proxy
Nodejs image proxy for watermarking images on S3/ DigitalOcean storage. No database required.
https://github.com/phucpnt/image-proxy
dockerfile image-proxy nodejs sharp watermark
Last synced: 10 months ago
JSON representation
Nodejs image proxy for watermarking images on S3/ DigitalOcean storage. No database required.
- Host: GitHub
- URL: https://github.com/phucpnt/image-proxy
- Owner: phucpnt
- License: apache-2.0
- Created: 2020-09-01T14:34:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-08T15:55:21.000Z (over 5 years ago)
- Last Synced: 2025-02-01T13:15:58.440Z (12 months ago)
- Topics: dockerfile, image-proxy, nodejs, sharp, watermark
- Language: JavaScript
- Homepage:
- Size: 65.4 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# image-proxy for watermark images in S3 or Digital Ocean Object storage
* Nodejs image proxy for watermarking images on S3. No database required.
* Optimized for speed.
* Leverage S3 tagging for Key Value storage.
** IMPORTANT **: this package has been tested on Digital Ocean Object storage but not tested yet on S3.
Since the DO declare that Object Storage is fully compatable with S3, hence in general this image server
would be work correctly on AWS S3.
## How to use this repo
* There is a docker container hosted at: https://github.com/users/phucpnt/packages/container/image-proxy
* To run the docker container, you need to define the following environment variables:
```ini
S3_BUCKET_NAME="s3 bucket name"
S3_PATH_WATERMARK="location when you store the watermark image. Support file format: .png, jpeg, .svg etc..."
S3_PREFIX_PROXIED="the prefix location after image has been applying watermark. Eg. /_imgproxy/your/origin/image/path"
S3_ENDPOINT="s3 endpoint"
S3_REGION="s3 region id"
S3_BUCKET_ACCESSKEY="s3 bucket accesskey"
S3_BUCKET_SECRETKEY="s3 bucket secretkey"
```
* To use inside `docker-compose.yml` please take a look at this [example](./docker-compose.yml)