Hastebin Plus is an open-source Pastebin software written in node.js, which is easily installable in any network.
It bases upon haste and got enhanced in matters of Design, Speed and Simplicity.
- Paste code, logs and ... almost everything!
- Syntax-Highlighting
- Add static documents
- Duplicate & edit pastes
- Raw paste-view
- Install Git and node.js:
sudo apt-get install git nodejs
- Clone this repository:
git clone https://github.com/MarvinMenzerath/HastebinPlus.git hastebin-plus
- Open
config.json
and change the settings (if you want to) - Install dependencies:
npm install
- Start the application:
npm start
- Pull changes from this repository:
git pull
- Install new dependencies:
npm install
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 |
{
"host": "0.0.0.0",
"port": 8080,
"dataPath": "./data",
"keyLength": 10,
"maxLength": 500000,
"createKey": "",
"documents": {
"about": "./README.md",
"javaTest": "./documents/test.java"
}
}
- haste: John Crepezzi - MIT License
- jQuery: MIT License
- highlight.js: Ivan Sagalaev - License
- Application Icon: Paomedia - CC BY 3.0 License
Copyright (c) 2014-2016 Marvin Menzerath
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.