Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mat-sz/shadowbin-api

📝 Encrypted text hosting service (Backend)
https://github.com/mat-sz/shadowbin-api

javascript pastebin typescript

Last synced: about 1 month ago
JSON representation

📝 Encrypted text hosting service (Backend)

Awesome Lists containing this project

README

        

# shadowbin-api

API for Shadowbin.

## Installation

Run `yarn install`, `yarn build` and then simply run `yarn start`. For development you can also run shadowbin-api with live reload, `yarn dev`.

## Configuration

`dotenv-flow` is used to manage the configuration.

The following variables are used for the configuration:

| Variable | Default value | Description |
| --------------- | ------------- | ------------------------------------------- |
| `HTTP_IP` | `127.0.0.1` | IP address to bind to. |
| `HTTP_PORT` | `8080` | Port to bind to. |
| `JWT_SECRET` | undefined | JWT signature secret. |
| `JWT_EXPIRY` | `7200` | Expiration time of JWT tokens (in seconds). |
| `BCRYPT_ROUNDS` | `12` | Number of rounds used for Bcrypt. |
| `PASTE_EXPIRY` | `30` | Default expiration of pastes (in days). |