Source: https://github.com/TheEngineerhub/nimg
nimg is a simple (~100 lines) self-hosted image hosting service written in nim. I created this initally to store my screenshots captured with Flameshot.
It's basically a RESTful service. There is no complex auth mechanism such as JWT or a database. You just set a token with environment variable to manage images. To use with Flameshot simply download this script, run after modifying the variables.
Get image:
GET: http://localhost:8080/i/myimage.pngUpload image:
POST: http://localhost:8080/u?token=super-secretcurl -F "[email protected]" http://localhost:8080/uDelete image:
GET: http://localhost:8080/d/myimage.png?token=super-secretEasiest way to install nimg is using docker-compose.
$ docker-compose up
Build from source.
$ export NIMG_ENVIRONMENT=development
$ nimble run
This repository is licensed under GPLv3 License.
Content type
Image
Digest
sha256:0a3fb12a2…
Size
3 MB
Last updated
almost 4 years ago
docker pull engineerhub/nimg