1
0
mirror of https://github.com/lus/pasty.git synced 2023-08-10 21:13:09 +03:00
Pasty is a fast and lightweight code pasting server http://pasty.lus.pm
Go to file
2020-08-23 21:05:20 +02:00
cmd/pasty Implement web server starting log 2020-08-23 16:44:06 +02:00
internal Remove trailing slash of paste creation endpoint 2020-08-23 21:02:16 +02:00
web Implement frontend 2020-08-23 20:02:51 +02:00
.gitignore Implement frontend 2020-08-23 20:02:51 +02:00
Dockerfile Dockerize the application 2020-08-23 21:05:20 +02:00
go.mod Tidy modules 2020-08-23 14:14:37 +02:00
go.sum Tidy modules 2020-08-23 14:14:37 +02:00
LICENSE Initial commit 2020-08-22 22:09:17 +02:00
README.md Update readme 2020-08-23 16:37:14 +02:00

pasty

Pasty is a fast and lightweight code pasting server

General environment variables

Environment Variable Default Value Type Allowed Values Description
PASTY_WEB_ADDRESS :8080 string any Defines the address the webs erver listens to
PASTY_STORAGE_TYPE file string file Defines the storage type the pastes are saved to
PASTY_HASTEBIN_SUPPORT false bool true, false Defines whether or not the POST /documents endpoint should be enabled, as known from the hastebin servers
PASTY_DELETION_TOKEN_LENGTH 12 number any Defines the length of the deletion token of a paste

Storage types

Pasty supports multiple storage types, defined using the PASTY_STORAGE_TYPE environment variable. Every single one of them has its own configuration variables:

File

Environment Variable Default Value Type Allowed Values Description
PASTY_STORAGE_FILE_PATH ./data string any Defines the file path the paste files are being stored to