Skip to content

Latest commit

 

History

History
57 lines (34 loc) · 1.25 KB

README.md

File metadata and controls

57 lines (34 loc) · 1.25 KB

PasteBin

Language: CN

A simple PasteBin Application with Python Flask backend and pretty frontend.

Demo http://paste.weicheng97.cn/

preview

Features

Markdown preview

When pasting is Markdown, the page is automatically rendered.

Automatic code format recognition

If you leave language selection empty, it will try to recognize code syntax automatically.

View all files

Visit http://pastebinpath/all to find all files ordered by newest pasted time.

Easy data transmission ui

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.

Run

With Docker

sudo docker run --restart=always --name pastebin -p 127.0.0.1:80:80 -v /var/pastebin:/pastebin/data weicheng97/pastebin:3.0

Directly

./run.sh

Debugging

./run.py

Reverse proxy

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"
}