Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mat-sz/shadowbin-api
📝 Encrypted text hosting service (Backend)
https://github.com/mat-sz/shadowbin-api
javascript pastebin typescript
Last synced: 3 months ago
JSON representation
📝 Encrypted text hosting service (Backend)
- Host: GitHub
- URL: https://github.com/mat-sz/shadowbin-api
- Owner: mat-sz
- License: bsd-3-clause-clear
- Created: 2020-10-07T15:55:05.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-11T17:09:59.000Z (over 3 years ago)
- Last Synced: 2024-06-21T11:28:11.548Z (5 months ago)
- Topics: javascript, pastebin, typescript
- Language: TypeScript
- Homepage:
- Size: 95.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - mat-sz/shadowbin-api - 📝 Encrypted text hosting service (Backend) (typescript)
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). |