Sign inSign up

corentinth/snut

By corentinth

Updated over 3 years ago
Archived

Another pastebin with a clean and minimalist ui. Made for selfhosting.

Image
2

211

corentinth/snut repository overview

Snut

Another pastebin with a clean and minimalist ui. Made for selfhosting. Sources on github

Host your instance

Installation
docker run -d --restart unless-stopped -v $(pwd)/db:/app/db -e DATABASE_PATH=/app/db/db.sqlite -p 3000:3000 --name snut corentinth/snut:latest
Configuration
ENV variableDefault valueFormatDescription
NODE_ENVdevelopmentproduction, development, testThe application environment.
PORT3000portThe port to bind.
MS_BEFORE_OUTDATED3600000NumberThe duration in ms before an entry is outdated.
CHECK_OUTDATED_MS10000NumberThe interval in ms to check for outdated.
DB_TYPEsqlitesqlite, mysql, postgres, cockroachdb, mariadbThe database type
DB_PATH./db.sqliteStringSqlite database path.
THROTTLE_TTL1800000NumberTimeframe for which requests are checked/remembered.
THROTTLE_LIMIT100NumberMax number of connections during windowMs milliseconds before sending a 429 response.

Contribute

Pull requests are welcome ! Feel free to contribute.

To contribute to this project, first clone this repo

git clone [email protected]:CorentinTh/snut.git
Installation
pnpm i
Running the app
# development
pnpm dev
Test
# unit tests
pnpm  test

Credits

Coded with ❤️ by Corentin Thomasset.

Name found with ❤️ by Aimie Tremoureux.

License

This project is under the MIT license.

Tag summary

Content type

Image

Digest

sha256:5e1acbf02

Size

95.8 MB

Last updated

over 3 years ago

docker pull corentinth/snut