Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 957 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 957 Bytes

tempbin

Self-hosted temporary text paste, file and image host.

Screenshot

Features

  • Upload images by pasting on the page
  • Files get deleted after 24 hours
  • JavaScript not required
  • Upload from terminal: curl --upload-file image.png http://localhost:1337

Set up

# Clone the repository
git clone https://github.com/hizkifw/tempbin

# Run it
cd tempbin
LISTEN='127.0.0.1:1337' cargo run

# Or, build the Docker image
docker build -t tempbin .

# Or, run the pre-built docker image
docker run \
    -d \
    -v $(pwd)/uploads:/opt/app/uploads \
    -p 1337:1337 \
    ghcr.io/hizkifw/tempbin:main

Configuration

Right now, most of the configuration is baked into the binary. Edit the source code and recompile it to update.

A convenience script build.sh is provided to help generate statically linked release builds.