execute local commands remotely via http requests
Go to file
2022-03-18 16:05:29 +01:00
.vscode updated and fixed some stuff 2022-03-17 16:51:36 +01:00
libs updated documentation, made minor changes to the config 2022-03-18 14:51:01 +01:00
.gitignore add and modify files for easier setup 2022-03-18 16:05:10 +01:00
.nvmrc add and modify files for easier setup 2022-03-18 16:05:10 +01:00
package-lock.json add and modify files for easier setup 2022-03-18 16:05:10 +01:00
package.json updated documentation, made minor changes to the config 2022-03-18 14:51:01 +01:00
README.md updated documentation, made minor changes to the config 2022-03-18 14:51:01 +01:00
remex.js updated documentation, made minor changes to the config 2022-03-18 14:51:01 +01:00
sample-config.json updated sample config 2022-03-18 16:05:29 +01:00

remex

execute local commands remotely via http requests

configuration

configuration is done entirely within the file config.json.

server: [object]

  • listen: [string] listen address
  • port: [number] port to listen on

log: [object]

  • level: [string] verbosity of the log; either debug, info, warning or error
  • timestamp: [string] format string for the timestamp; review moment.js for further information

api: [object-array]

  • url: [string] endpoint url; example: /example
  • method: [string] http request method
  • command: [string] command to execute
  • args: [string-array] arguments to pass to the executed command
  • options: [object]
    • detach [boolean] detach from the executed command / do not wait for the command to finish
    • unique [boolean or string] if set to true the command can not be executed again until it has finished; if set to restart the command will be killed (if active) and started again; if set to toggle the command will either be killed if active or started if not active