mirror of
https://github.com/skidoodle/pastebin
synced 2026-04-28 03:07:40 +02:00
26924a5c010966a6e2bad66603d05e950e0ba861
pastebin
A minimalist, high-performance paste service written in Go.
Deployment
Docker Compose
services:
pastebin:
image: ghcr.io/skidoodle/pastebin:latest
container_name: pastebin
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- ./data:/app/database
Manual Installation
Requires Go 1.25 or higher.
go build -o pastebin .
./pastebin -addr :3000 -db-path pastebin.db
Configuration
| Flag | Description | Default |
|---|---|---|
-addr |
Socket address to bind to. | :3000 |
-db-path |
Path to the BoltDB database file. | pastebin.db |
-max-size |
Maximum allowed paste size in bytes. | 10485760 |
-ttl |
Time to live for pastes before expiration. | 168h0m0s |
License
This project is licensed under the GNU General Public License v3.0.
Languages
Go
73.7%
CSS
11.8%
JavaScript
6.2%
HTML
5.8%
Just
1.5%
Other
1%