Small and simple server for temporary serving files in one binary.
In the game Garry's mod, i needed to transfer files between clients. Garry's mod have it is own network stream, but speed is very limited, and file with size ~3mb could transfer about 30 seconds. So i wrote this small application to store this files, and get them.
- Secure uploaded file with random access key
- Rate limit
- Automated builds
- Frontend page
You can deploy TempX with docker, just run:
$ docker run -p 3000:3000 dankmolot/tempx
or with docker compose:
version: "3.9"
services:
tempx:
image: dankmolot/tempx
restart: unless-stopped
ports:
- 3000:3000
Configuration file App.toml
should be placed at /app/App.toml
When you deploy TempX, you can access index page http://localhost:3000/, to see documentation.
You can also see documentation at source code
You can configure server with enviroment variables
APP_PORT=3000
APP_DEFAULT_EXPIRE=1m
APP_MAX_EXPIRE=10m
APP_LIMITS.FILE=10MiB
APP_ADDRESS=0.0.0.0
or with App.toml
configuration file
port=3000
default_expire="1m"
max_expire="10m"
limits.file="10MiB"
address="0.0.0.0"