Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.
/ imagehost Public archive

A simple express file uploader used as an image hosting service

License

Notifications You must be signed in to change notification settings

biaw/imagehost

Repository files navigation

Test build Linting Analysis and Scans Testing DeepScan grade express version GitHub Issues GitHub Pull Requests

imagehost

A simple express file uploader used as an image hosting service.

Setup

Setting up using Docker

With Docker, you don't even need to download anything. You can also slightly customize the behaviour by filling in environment variables. See the example.env-file for more information on what you can customize.

  • -p YOUR_PORT:80 - The Docker image runs on port 80, but you can redirect it to whatever port you want
  • -e "TOKEN=yoursecrettoken" - To upload via e.g. ShareX, you need an authorization header with the token. Edit it to what you'd like to use.
  • -v /path/to/images:/app/images - You need an image folder for your images. Define the path here.
  • -v /path/to/logs:/app/logs - Logs are optional, but will help you debug. Omit this if you don't need logs.

Linux

docker run --name imagehost \
  -p 1234:80 \
  -e "TOKEN=yoursecrettoken" \
  -v /imagehost/images:/app/images \
  -v /imagehost/logs:/app/logs \
  ghcr.io/biaw/imagehost:latest

Windows

docker run --name imagehost ^
  -p 1234:80 ^
  -e "TOKEN=yoursecrettoken" ^
  -v "C:\imagehost\images":/app/images ^
  -v "C:\imagehost\logs":/app/logs ^
  ghcr.io/biaw/imagehost:latest