From bbe70647d7e25630d14a3df96d67b7e9bd4e85cb Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Fri, 25 Aug 2023 14:26:59 +1000 Subject: [PATCH] docs: Added info on free mode --- README.md | 10 ++++++++++ discord-bot/bot.py | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3245bc4..6957d02 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,10 @@ The bot will be used to provide an easier way to manage the master server. | Red Connections | Secured by VPN or over LAN ONLY. (NOT API SECURED) | | Yellow Connections | HTTP/HTTPS public traffic | +## Features +- [x] Add new worker server to master server pool +- [x] Create wordpress site on random worker server +- [x] Optional Free mode (see Bot section) ## Usage @@ -105,4 +109,10 @@ Alternatively you can use the discord bot to add the worker to the master server Docker install ```sh docker run -d -e MASTER_IP= -e DISCORD_TOKEN= -e LICENCE_KEY=your-api-key -e WORKER_KEY=your-api-key --name hnshosting-bot git.woodburn.au/nathanwoodburn/hnshosting-bot:latest +``` + +Enable the free mode by setting the following environment variable. +This will allow you to create a wordpress site without using a licence key using the /createsite command. +``` +FREE_MODE: true ``` \ No newline at end of file diff --git a/discord-bot/bot.py b/discord-bot/bot.py index 54a4af5..e0da690 100644 --- a/discord-bot/bot.py +++ b/discord-bot/bot.py @@ -13,7 +13,7 @@ Master_Port = os.getenv('MASTER_PORT') if Master_Port == None: Master_Port = "5000" -FREE_LICENCE = os.getenv('FREE_LICENCE') +FREE_LICENCE = os.getenv('FREE_MODE') if FREE_LICENCE == None: FREE_LICENCE = False else: