Skip to content

adamoutler/pastebin

Repository files navigation

Hastebin Plus

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.

Features

  • Paste code, logs and ... almost everything!
  • Syntax-Highlighting
  • Add static documents
  • Duplicate & Tweet pastes
  • Raw paste-view

Demo

For a Hastebin Plus Demo click here: http://hastebin-plus.herokuapp.com/.

Installation

  1. change to /opt cd /opt
  2. Install Git and node.js: sudo apt-get install git nodejs
  3. Clone this repository: git clone https://github.com/MarvinMenzerath/HastebinPlus.git hastebin-plus
  4. Open config.js and change the settings (if you want to)
  5. Install dependencies: npm install
  6. Start the application: npm start
  7. Install the service cp init.d/pastebin /etc/init.d/;sudo update-rc.d pastebin defaults

Update

  1. Pull changes from this repository: git pull
  2. Install new dependencies: npm install

Settings

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

Default Config

{
    "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"
    }
}

Authors

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/.

About

a modified version of hastebin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published