https://github.com/mediacomem/comem-qimg
Quick-and-dirty image upload API
https://github.com/mediacomem/comem-qimg
Last synced: about 1 year ago
JSON representation
Quick-and-dirty image upload API
- Host: GitHub
- URL: https://github.com/mediacomem/comem-qimg
- Owner: MediaComem
- Created: 2017-03-17T12:03:09.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2024-12-04T09:33:31.000Z (over 1 year ago)
- Last Synced: 2025-02-14T17:43:35.907Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://qimg.onrender.com/doc
- Size: 1.13 MB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# qimg
Quick-and-dirty image upload API
[](https://github.com/MediaComem/comem-qimg/actions/workflows/build.yml)
[](https://github.com/MediaComem/comem-qimg/actions/workflows/publish.yml)
## Environment Variables
- **NODE_ENV**: Environment (defaults to `development`).
- **PORT**: Port to listen to (defaults to `3000`).
- **DATABASE_URL**: PostgreSQL connection URL (defaults to `postgres://localhost/qimg`).
- **QIMG_URL**: Base URL (defaults to `http://localhost:$PORT`).
- **QIMG_ADMIN_TOKEN**: Administrator authentication token (defaults to `admin` in development, **required** in production).
- **QIMG_IMAGE_QUOTA**: Number of images kept for each user (default to 10).
- **QIMG_MAX_IMAGE_SIZE**: Maximum number of bytes per image (defaults to 2097152).