bot: Initial add
All checks were successful
Build Docker / Build Master (push) Successful in 23s
Build Docker / Build Bot (push) Successful in 37s

This commit is contained in:
2023-08-16 17:43:30 +10:00
parent 14ee680583
commit 036ddc7aa6
5 changed files with 90 additions and 1 deletions

View File

@@ -5,6 +5,17 @@ Then there is the worker server which is the server that will be used to host th
This is done to make it easier to manage multiple wordpress sites on multiple servers.
## Overview
The master server will be used to manage the worker servers.
The worker servers will be used to host the wordpress sites.
The bot will be used to provide an easier way to manage the master server.
## Usage
!TODO
## Master server install
Docker is the easiest way to install the master server.
@@ -36,4 +47,11 @@ Add worker to master server:
```
curl -X POST http://master-server-ip:5000/add-worker?worker=worker-name&ip=worker-server-ip -H "key: api-key"
```
## Discord bot install
Docker install
```
docker run -d -p 5000:5000 -e MASTER_IP=<MASTER SERVER IP> -e DISCORD_TOKEN=<YOUR-BOT-TOKEN> -e LICENCE-API=your-api-key -e WORKER_KEY=your-api-key --name hnshosting-bot git.woodburn.au/nathanwoodburn/hnshosting-bot:latest
```