|
@@ -41,7 +41,7 @@ generate_key() {
|
|
|
echo "$KEY"
|
|
echo "$KEY"
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-update_config() { # Generate keys for SECRET_KEY and MGMT_AUTH
|
|
|
|
|
|
|
+update_config() { # Generate key for SECRET_KEY
|
|
|
local key_name="$1"
|
|
local key_name="$1"
|
|
|
local key_value="$2"
|
|
local key_value="$2"
|
|
|
local bak_file="instance/config.py.bak"
|
|
local bak_file="instance/config.py.bak"
|
|
@@ -78,9 +78,6 @@ cp ownchatbot/defaults/*py instance/ # Copy the default config files into the i
|
|
|
SECRET_KEY=$(generate_key)
|
|
SECRET_KEY=$(generate_key)
|
|
|
update_config "SECRET_KEY" "$SECRET_KEY"
|
|
update_config "SECRET_KEY" "$SECRET_KEY"
|
|
|
|
|
|
|
|
-MGMT_AUTH=$(generate_key)
|
|
|
|
|
-update_config "MGMT_AUTH" "$MGMT_AUTH"
|
|
|
|
|
-
|
|
|
|
|
read -p "Please enter the port number you would like OwnchatBot to listen on: " OCB_PORT
|
|
read -p "Please enter the port number you would like OwnchatBot to listen on: " OCB_PORT
|
|
|
|
|
|
|
|
echo "
|
|
echo "
|
|
@@ -90,5 +87,7 @@ env/bin/python -m gunicorn --error-logfile ownchatbot.log -b 0.0.0.0:$OCB_PORT -
|
|
|
|
|
|
|
|
To configure your bot, go to:
|
|
To configure your bot, go to:
|
|
|
|
|
|
|
|
-http://localhost:$OCB_PORT/mgmt?auth=$MGMT_AUTH
|
|
|
|
|
|
|
+http://localhost:$OCB_PORT/mgmt
|
|
|
|
|
+
|
|
|
|
|
+Login using your owncast admin name and password.
|
|
|
"
|
|
"
|