Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yuri2peter/remote-sh

Provides a friendly way for managing your shell scripts on your server. you can add, edit, remove, run your scripts easily.
https://github.com/yuri2peter/remote-sh

Last synced: about 2 months ago
JSON representation

Provides a friendly way for managing your shell scripts on your server. you can add, edit, remove, run your scripts easily.

Awesome Lists containing this project

README

        

# remote-sh

[中文文档](./README_zh_cn.md) |
English Documents

Managing & runing your shell scripts on web!

`remote-sh` provides a friendly way for managing your shell scripts on your server. you can add, edit, remove, run your scripts easily.

Each script can be triggered by a UNIQUE URL so you can use it anywhere like:

```
$ curl https://YOUR_REMOTE_SH_HOST/script/run/example.sh/UNIQUE_SIGN_FOR_THIS_SCRIPT
```

The system use Access Key policy to identify yourself.

![img1](./assets/img1.png)
![img2](./assets/img2.png)
![img3](./assets/img3.png)

## Install

```
$ npm ci
```

## Deploy

All you need is keeping this running:

```
$ npm start
```

### Port

Set port at file `./configs.js` ( default: 3020 ).

### HTTPS

We strongly recommend that enabling the HTTPS feature.

To start your web server with HTTPS, you must set `useHttps: true` and `port: 443` at file `./configs.js`, then copy your certificate files to `./https/server.key` and `./https/server.crt`.

You can also use other ways for HTTPS ( for me, i'd like to try [steveltn/https-portal](https://hub.docker.com/r/steveltn/https-portal/) ).

### Background Running

`pm2, screen, docker` will help you doing that.

```bash
pm2 start pm2.json
pm2 save
pm2 startup
```