flakrat / lenpaste

Lenpaste is a web service that allows you to share notes anonymously, an alternative to pastebin.com. Java Script is not used. There is its own API.

Home Page:https://paste.lcomrade.su

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repository archiving

This repository has been permanently moved to my own Git server. Stay tuned for updates here: https://git.lcomrade.su/root/lenpaste

Read about the reason for this action here: https://github.com/lcomrade/lcomrade#give-up-github

Lenpaste is a web service that allows you to share notes anonymously, an alternative to pastebin.com.

Features

  • No need to register
  • Does not use Java Script or cookies
  • Has its own API
  • Open source and self-hosted

Public servers list

Server Description
paste.lcomrade.su Server managed by the Lenpaste developer

Documentation

Launch your own server

  1. If you don't already have Docker installed, do so:
apt-get install -y docker docker.io docker-compose
  1. Use a file like this docker-compose.yml:
version: "2"

services:
  lenpaste:
    image: git.lcomrade.su/root/lenpaste:latest
    restart: always
    environment:
      # All parameters are optional
      - LENPASTE_ADDRESS=:80                 # Set -address flag
      - LENPASTE_DB_DRIVER=sqlite3           # Set -db-driver flag
      - LENPASTE_DB_SOURCE=/data/lenpaste.db # Set -db-source flag
      - LENPASTE_DB_CLEANUP_PERIOD=3h        # Set -db-cleanup-period flag
      - LENPASTE_ROBOTS_DISALLOW=false       # If true set -robots-disallow flag
      - LENPASTE_TITLE_MAX_LENGTH=100        # Set -title-max-length flag. If 0 disable title, if -1 disable length limit.
      - LENPASTE_BODY_MAX_LENGTH=10000       # Set -body-max-length flag. If -1 disable length limit. Can't be -1.
      - LENPASTE_MAX_PASTE_LIFETIME=never    # Set -max-paste-lifetime flag. Examples: 2d, 12h, 7m.
      - LENPASTE_ADMIN_NAME=                 # Set -admin-name flag.
      - LENPASTE_ADMIN_MAIL=                 # Set -admin-mail flag.
    volumes:
      # /data/lenpaste.db - SQLite DB
      # /data/about.html  - About this server
      # /data/rules.html  - This server rules
      - "${PWD}/data:/data"
      - "/etc/timezone:/etc/timezone:ro"
      - "/etc/localtime:/etc/localtime:ro"
    ports:
      - "80:80"
  1. Execute while in the directory where docker-compose.yml is located:
docker-compose pull && docker-compose up -d

PS: If you want to install updates, run: docker-compose pull && docker-compose stop && docker-compose up -d && docker system prune -a -f

Read more:

Build from source code

On Debian/Ubuntu:

sudo apt update
sudo apt -y install git make gcc golang
git clone https://git.lcomrade.su/root/lenpaste.git
cd ./lenpaste/
make

You can find the result of the build in the ./dist/ directory.

Bugs and Suggestion

If you find a bug or have a suggestion, create an Issue here.

About

Lenpaste is a web service that allows you to share notes anonymously, an alternative to pastebin.com. Java Script is not used. There is its own API.

https://paste.lcomrade.su

License:GNU Affero General Public License v3.0


Languages

Language:Go 90.5%Language:CSS 5.1%Language:Shell 2.7%Language:Makefile 0.9%Language:Dockerfile 0.7%