GithubHelp home page GithubHelp logo

bolverblitz / nclogwebserver Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 44 KB

Easy terminal sharing server in JS

License: GNU Affero General Public License v3.0

Shell 1.29% JavaScript 98.71%
terminal-sharing sharing support hastebinalternative mysql postgresql filesystem netcat

nclogwebserver's Introduction

nclogwebserver

Command line pastebin for sharing terminal output written in JS.
Inspired by fiche with support for multiple data storage options.

Client-side usage

Post your logs:

echo "Hello world" | nc ncc.ebg.pw 10021

You´ll get a domain as response.
Get your logs: Open it in your browser or curl https://nc.ebg.pw/fetch/13neazsxrlin your terminal.

Server-side setup

git clone https://github.com/BolverBlitz/nclogwebserver
cd ./nclogwebserver
npm i
mv ./.env.example ./.env
nano .env
node .

Environment File

WebPORT: Port the webserver should run on (Default: 5000)
WebURL: The Public/Private URL returned in the response
localIP: IP the netcatserver should use (Default: 0.0.0.0)
NCPort: Port the netcatserver shound run on (Default: 5555)

LOG_LEVEL: 1 (Errors only), 2 (Errors and Warnings), 3 (Everything)
servername: Name of this application, justused for logs

Enable_Static: Enable serving of a extra folder with static content, like a welcome message
Enable_Static_List: Enable listing all files of that static content folder.


DB_Driver: pgsql, mysql, files
Below the DB login info, if using files you can leave that empty.

Databases

  • PostgreSQL (pgsql): Data will be stored as TEXT (Unlimited length)
  • MySQL (mysql): Data will be stored as MEDIUMTEXT (16,777,215 characters)
  • Filesystem (files): Data will be stored as files

Static Content

If enabled, it will be served under the /static route

Errors

  • Error on saving your Request: Something is wrong, more information might be in the logs
  • Error in generating your uuid: No more unused strings for the request (By default: 3.6561584e+15)

nclogwebserver's People

Contributors

bolverblitz avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.