mirror of
https://github.com/MrUnknownDE/unknownbin.git
synced 2026-04-06 00:32:08 +02:00
22badaf5354073035ffd5c7d5c35287fce558ac7
unknownBIN
unknownBIN is a secure and modern open-source Pastebin software written in node.js.
It is a fork of the original Hastebin and Hastebin Plus, modernized for security and performance.
Features
- Paste code, logs and ... almost everything!
- Syntax-Highlighting
- Add static documents
- Duplicate & edit pastes
- Raw paste-view
- Secure, unpredictable paste IDs
- Modernized backend with security enhancements
Installation
- Install Git and node.js (a recent LTS version is recommended).
- Clone this repository:
git clone https://github.com/MrUnknownDE/unknownbin.git unknownbin - Change into the directory:
cd unknownbin - Install dependencies:
npm install - Build static assets:
npm run build - Open
config.jsonand change the settings (if you want to). - Start the application:
npm start
Update
- Pull changes from the repository:
git pull - Install new dependencies:
npm install - Re-build static assets:
npm run build - Restart the application.
Settings
| Key | Description | Default value |
|---|---|---|
host |
The host the server runs on | 0.0.0.0 |
port |
The port the server runs on | 8080 |
dataPath |
The directory where all pastes are stored | ./data |
keyLength |
The length of the pastes' key | 10 |
maxLength |
Maximum chars in a paste | 500000 |
createKey |
Needs to be in front of paste to allow creation | "" |
documents |
Static documents to serve | See below |
Default Config
{
"host": "0.0.0.0",
"port": 8080,
"dataPath": "./data",
"keyLength": 10,
"maxLength": 500000,
"createKey": "",
"documents": {
"about": "./README.md"
}
}
Description
Languages
JavaScript
69.6%
CSS
9.1%
Dockerfile
6.3%
EJS
4.7%
Java
4.5%
Other
5.8%