Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pandruszkow/len_wastebin
A fork of wastebin to give it Docker builds
https://github.com/pandruszkow/len_wastebin
Last synced: 26 days ago
JSON representation
A fork of wastebin to give it Docker builds
- Host: GitHub
- URL: https://github.com/pandruszkow/len_wastebin
- Owner: pandruszkow
- License: agpl-3.0
- Created: 2022-08-29T22:20:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-29T22:45:06.000Z (over 2 years ago)
- Last Synced: 2024-11-06T17:30:32.812Z (2 months ago)
- Language: Go
- Size: 218 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
**Wastebin** is a web service that allows you to share notes anonymously, an alternative to `pastebin.com`.
This project was forked from [Lenpaste](https://git.lcomrade.su/root/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:
```bash
apt-get install -y docker docker.io docker-compose
```2. Use a file like this `docker-compose.yml`:
```yaml
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"
```3. Execute while in the directory where `docker-compose.yml` is located:
```bash
docker-compose pull && docker-compose up -d
```PS: If you want to install updates, run:
```bash
docker-compose pull && docker-compose stop && docker-compose up -d
```## Build from source code
On Debian/Ubuntu:
```bash
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:
- [Reverse proxy: Nginx](docs/reverse_proxy_nginx.md)
- [Database: PostgreSQL](docs/db_postgresql.md)For developers:
- [Lenpaste API](https://paste.lcomrade.su/docs/apiv1)
- [Libraries for working with API](https://paste.lcomrade.su/docs/api_libs)## Bugs and Suggestion
If you find a bug or have a suggestion, please open an issue or pull request