Skip to content
forked from cczu-osa/pastebin

A PasteBin Based on Python Flask and mount on Docker

Notifications You must be signed in to change notification settings

2chips/pastebin

 
 

Repository files navigation

PasteBin

An simple PasteBin uses pygments to generate html and Flask as background.

Demo https://paste.cczu.org

Run

With Docker

sudo docker run --restart=always --name pastebin -p 80:80 weicheng97/pastebin:2.0

Directly

Do not try to just use app.run. Flask has serious problem on performance.

gunicorn -w 4 -b 0.0.0.0:80 PasteBinWeb:app

Useage

Just open it and enjoy pasting.

View all files

visit http://yourdomain/all to find all files ordered by newest pasted time.

Use post method to paste

Post to root URL and server receive two parameters [syntax,content], quite easy.

About

A PasteBin Based on Python Flask and mount on Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Dockerfile 0.1%