Skip to content

abdelsalamshahlol/Server-Control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Control

Server control is a small project intended to give sysads, devs, etc. easier way to run commands on their servers.

Story Behind

I was deploying a NodeJS application on a shared web hosting server that uses Cpanel. Using the UI I ran the application just fine and a script that crashed and made not to stop the application. I came to conclusion that there's a node deamon process running in the backgoroud and I had to kill it in order to stop the app and delete it and that's where the app came from.

How to use

  1. Clone the repo and navigate to the folder.
git clone https://github.com/abdelsalamshahlol/Server-Control.git
  1. Install node dependencies.
 npm i 
  1. Create .env file and define the port for the app to use.
  2. Send HTTP request to your server.

Endpoints

SmartyPants converts ASCII punctuation characters into "smart" typographic punctuation HTML entities. For example:

Endpoint HTTP Method Request Body Use
https://yourdomain.com:6969 POST command e.g:ls, dir` Runs command and returns result
https://yourdomain.com:6969/commands GET N/A Returns list of commands based on server system (Linux or Windows)
https://yourdomain.com:6969 GET N/A Returns the server Operating System e.g. Linux, Windows, etc.

About

Run system commands via HTTP requests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published