Secure and private online pastebin based on golang.
Modern self-hosted pastebin service written in Golang.
Motivation
Many Pastebin services exist but all are more complicated than they need to be. That is why I decided to write a pastebin service in golang.
although the code has severely been modified and functionalities altered.
Supports mysql
or sqlite3
database drivers.
Due to the time problem, at the same time this code is also archived code refurbished and re-uploaded, currently only the Chinese language interface is made, if you have time, you can submit the language pack for other languages, thank you very much.
Advantage
- Easy to use and install
- Code highlighting in more than 240 languages supported
- Support for creating short links
Getting started
Prerequisities
- go
- gcc
- mysql (optionnal)
Configuration
You should edit config.json
before running GoPaste.
Address : Base url used for redirections
Port : HTTP listen port
Length : Length of paste ID
DBType : "sqlite3" or "mysql" based on your preferences
DBName : Database sqlite filename or mysql name
DBUsername : Mysql database username (unused for sqlite)
DBPassword : Mysql database password (unused for sqlite)
Run
GOPaste will automatically create the required SQL tables required.
- Enter releases, download the latest version of the compressed package and unzip it to any folder (At present, only Windows and Linux AMD64 compilers are available. For other systems, please compile by yourself)
- Give
gopaste
execution permission - Fill it in
config.json
- Run through the daemons or
screen
from https://github.com/gaowanliang/gopaste
No comments:
Post a Comment