Giter VIP home page Giter VIP logo

len_wastebin's Introduction

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

This project was forked from Lenpaste and has been modified.

Features

  • No need to register
  • Does not use cookies
  • Can work without JavaScript
  • Has its own API
  • Open source and self-hosted

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: '3'

services:
  lenpaste:
    image: git.lcomrade.su/root/lenpaste:latest
    restart: always
    environment:
      # All parameters are optional
      - WASTEBIN_ADDRESS=:80                 # Set -address flag
      - WASTEBIN_DB_DRIVER=sqlite3           # Set -db-driver flag
      - WASTEBIN_DB_SOURCE=/data/lenpaste.db # Set -db-source flag
      - WASTEBIN_DB_CLEANUP_PERIOD=3h        # Set -db-cleanup-period flag
      - WASTEBIN_ROBOTS_DISALLOW=false       # If true set -robots-disallow flag
      - WASTEBIN_TITLE_MAX_LENGTH=100        # Set -title-max-length flag. If 0 disable title, if -1 disable length limit.
      - WASTEBIN_BODY_MAX_LENGTH=10000       # Set -body-max-length flag. If -1 disable length limit. Can't be -1.
      - WASTEBIN_MAX_PASTE_LIFETIME=never    # Set -max-paste-lifetime flag. Examples: 2d, 12h, 7m.
      - WASTEBIN_ADMIN_NAME=                 # Set -admin-name flag.
      - WASTEBIN_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

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.

Other documentation

For instance administrators:

For developers:

Bugs and Suggestion

If you find a bug or have a suggestion, please open an issue or pull request

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.