A storage-less, database-less, ________-less filesharing. Send anything to @tinystash_bot Telegram bot. Get an opaque http link. Share it.
Written in Lua. Powered by OpenResty.
See instructions on OpenResty website.
$ while read PNAME; do opm --cwd get $PNAME; done < requirements.opmCopy app and nginx configs from examples and edit them:
$ cp config/app.example.lua config/app.lua
$ cp config/nginx.example.conf config/nginx.conf$ scripts/webhook set$ /usr/local/openresty/nginx/sbin/nginx -c config/nginx.conf -p .-
Prepare
configdirectory withnginx.confandapp.luaconfigs. -
Run Docker container:
$ docker run -d \
--restart unless-stopped \
# Mount config directory from step 1
-v /path/to/config:/opt/tinystash/config \
# Optional: mount logs directory if you have configured log file(s) in nginx.conf
-v /var/log/tinystash:/opt/tinystash/logs \
# host:container port mapping
-p 80:80 \
--name tinystash \
un1def/tinystash- Set up Telegram bot webhook (Docker container must be started):
$ docker exec -it tinystash scripts/webhook set