An ephemeral pastebin. you can only retrieve the paste once, and then it is deleted from the server.
This project is a refactor of the original blck repository, developed by parazyd. The original repository was built using Flask, and this version has been adapted to use Sanic for better async capabilities.
Note: The core functionality and features have been preserved.
- Async Logging: Integrated aiologger for asynchronous logging.
- File Expiration: Files automatically expire after 4 hours, and expired files are cleaned up periodically.
- File size upload limit: Enforced 60MB upload size cap.
use pyproject.toml to define project metadata and dependencies or just run uv init
refer the astral-uv documentation: https://docs.astral.sh/uv/
run uv run blck.py -d to the run the application in debug mode
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_pass http://127.0.0.1:8000;
}
either use the website, or curl:
curl -F 'c=@-' http://whatever.domain < file