An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# qimg

Quick-and-dirty image upload API

[![build](https://github.com/MediaComem/comem-qimg/actions/workflows/build.yml/badge.svg)](https://github.com/MediaComem/comem-qimg/actions/workflows/build.yml)
[![publish](https://github.com/MediaComem/comem-qimg/actions/workflows/publish.yml/badge.svg)](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).