Wordpress hosting system for Handshake https://hnshosting.au
Go to file
Nathan Woodburn f72016332a
All checks were successful
Build Docker / Build Master (push) Successful in 25s
Build Docker / Build Bot (push) Successful in 24s
worker: Fixed async
2023-08-17 13:50:09 +10:00
.gitea/workflows bot: Initial add 2023-08-16 17:43:30 +10:00
discord-bot main: Added tlsa and a few bug fixes 2023-08-17 13:27:57 +10:00
master main: Added function to get worker ip from worker name 2023-08-17 13:43:15 +10:00
worker worker: Fixed async 2023-08-17 13:50:09 +10:00
.gitignore main: Added worker interactions 2023-08-16 16:59:57 +10:00
LICENSE.md Initial commit 2023-08-16 12:53:35 +10:00
README.md main: Added tlsa and a few bug fixes 2023-08-17 13:27:57 +10:00

HNSHosting Wordpress

This is split into two parts. There is the master server which is the server that will be used to manage the worker servers. Then there is the worker server which is the server that will be used to host the wordpress site.

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.

docker run -d -p 5000:5000 -e LICENCE-API=your-api-key -e WORKER_KEY=your-api-key --name hnshosting-master git.woodburn.au/nathanwoodburn/hnshosting-master:latest -v ./data:/data

You can also mount a docker volume to /data to store the files instead of mounting a host directory.

Alternatively you can install it manually. Set your .env file.

cd master
python3 -m pip install -r requirements.txt
python3 main.py

Worker server install

Install prerequisites:

chmod +x install.sh
./install.sh

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 -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