Skip to content
/ rex Public

Small tool for remote command execution via hook

License

Notifications You must be signed in to change notification settings

fearoff999/rex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rex

Small tool for remote command execution via hook

Installation

Download binary from releases page

Make binary executable sudo chown $USER:$USER rex

Usage

  1. Simply define 3 variables at .env.rex file (described below, example is provided at repo .env.rex.example).
  2. Run binary with ./rex & or nohup ./rex &
  3. Trigger command execution with GET-request https://#host#:#REX_PORT#/
  4. Wait till end of execution and see stdout/stderr of command at response
  5. Profit

Environment variables

REX_USER - username used for basic auth

REX_PASSWORD - password used for basic auth

REX_COMMAND - command that should be executed (e.g: docker-compose restart webserver, date, ...)

REX_PORT - http webserver port

Healthcheck

https://#host#:#REX_PORT#/health can be used as healthcheck of rex service (responses with 200 if service is up)

About

Small tool for remote command execution via hook

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages