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 & Tweet pastes
- Raw paste-view
For a Hastebin Plus Demo click here: http://hastebin-plus.herokuapp.com/.
- change to /opt
cd /opt
- 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.js
and change the settings (if you want to) - Install dependencies:
npm install
- Start the application:
npm start
- Install the service
cp init.d/pastebin /etc/init.d/;sudo update-rc.d pastebin defaults
- Pull changes from this repository:
git pull
- Install new dependencies:
npm install
Key | Description | Default value |
---|---|---|
host |
The host the server runs on | localhost |
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 |
staticMaxAge |
Max age for static assets | 86400 |
compressStaticAssets |
Whether or not to compile static js assets | true |
documents |
Static documents to serve; will never expire | See below |
{
"host": "0.0.0.0",
"port": 8080,
"dataPath": "./data",
"keyLength": 10,
"maxLength": 500000,
"staticMaxAge": 86400,
"compressStaticAssets": true,
"documents": {
"about": "./README.md",
"javaTest": "./documents/test.java"
}
}
- haste: John Crepezzi - MIT License
- jQuery: MIT License
- highlight.js: Ivan Sagalaev - License
Copyright (C) 2014 Marvin Menzerath
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.