Language: CN
A simple PasteBin Application with Python Flask backend and pretty frontend.
Demo http://paste.weicheng97.cn/
When pasting is Markdown, the page is automatically rendered.
If you leave language selection empty, it will try to recognize code syntax automatically.
Visit http://pastebinpath/all to find all files ordered by newest pasted time.
You can post raw code to http://pastebinpath/raw directly to add a new paste, or post a structured json data to http://pastebinpath/paste to get more detailed control. see DataExchange.md for more information.
sudo docker run --restart=always --name pastebin -p 127.0.0.1:80:80 -v /var/pastebin:/pastebin/data weicheng97/pastebin:3.0
./run.sh
./run.py
If you want to use another URL, like https://example.com/paste, you need to create a text file settings.json
in the data folder, and type content as follow:
{
"baseurl": "https://example.com/paste"
}