mirror of
https://github.com/skidoodle/pastebin
synced 2026-04-28 11:17:41 +02:00
45 lines
1.1 KiB
Markdown
45 lines
1.1 KiB
Markdown
# pastebin
|
|
|
|
[](https://go.dev/)
|
|
[](https://github.com/skidoodle/pastebin/pkgs/container/pastebin)
|
|
|
|
A minimalist, high-performance paste service written in Go.
|
|
|
|
## Deployment
|
|
|
|
### Docker Compose
|
|
|
|
```yaml
|
|
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.
|
|
|
|
```bash
|
|
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](LICENSE).
|