Skip to content

hizkifw/tempbin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Temporary file upload and text paste

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages