docs: Added info on free mode
This commit is contained in:
parent
d6dffc0464
commit
bbe70647d7
10
README.md
10
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) |
|
| Red Connections | Secured by VPN or over LAN ONLY. (NOT API SECURED) |
|
||||||
| Yellow Connections | HTTP/HTTPS public traffic |
|
| 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
|
## Usage
|
||||||
|
|
||||||
@ -105,4 +109,10 @@ Alternatively you can use the discord bot to add the worker to the master server
|
|||||||
Docker install
|
Docker install
|
||||||
```sh
|
```sh
|
||||||
docker run -d -e MASTER_IP=<MASTER SERVER IP> -e DISCORD_TOKEN=<YOUR-BOT-TOKEN> -e LICENCE_KEY=your-api-key -e WORKER_KEY=your-api-key --name hnshosting-bot git.woodburn.au/nathanwoodburn/hnshosting-bot:latest
|
docker run -d -e MASTER_IP=<MASTER SERVER IP> -e DISCORD_TOKEN=<YOUR-BOT-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
|
||||||
```
|
```
|
@ -13,7 +13,7 @@ Master_Port = os.getenv('MASTER_PORT')
|
|||||||
if Master_Port == None:
|
if Master_Port == None:
|
||||||
Master_Port = "5000"
|
Master_Port = "5000"
|
||||||
|
|
||||||
FREE_LICENCE = os.getenv('FREE_LICENCE')
|
FREE_LICENCE = os.getenv('FREE_MODE')
|
||||||
if FREE_LICENCE == None:
|
if FREE_LICENCE == None:
|
||||||
FREE_LICENCE = False
|
FREE_LICENCE = False
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user