Skip to content

A PasteBin Based on Python Flask and mount on Docker

Notifications You must be signed in to change notification settings

cczu-osa/pastebin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A PasteBin Based on Python Flask and mount on Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published