Total Pageviews

Saturday, 9 December 2023

GoPaste

 Secure and private online pastebin based on golang.

简体中文

Go Version Release Version GitHub license GitHub Star GitHub Fork

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.

Paste here Paste content

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.

  1. 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)
  2. Give gopaste execution permission
  3. Fill it in config.json
  4. Run through the daemons or screen
  5.  from https://github.com/gaowanliang/gopaste

 

No comments:

Post a Comment