Browse Source

Added a config option to enable/disable web interface

master
sirgje 1 year ago
parent
commit
18168c80a7
No known key found for this signature in database GPG Key ID: 9F326B1EC4A97073
  1. 3
      cogs/webserver.py
  2. 4
      config.py.example

3
cogs/webserver.py

@ -15,7 +15,8 @@ AuthManager(app)
class Webserver(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.web_server.start()
if bot.config.web_enabled:
self.web_server.start()
@app.route('/')
@login_required

4
config.py.example

@ -12,7 +12,9 @@ secret_key = ''
redis_host = 'localhost'
redis_port = 6379
# Rooster web interface
web_enabled = False
web_host = 'localhost'
web_port = 5000
web_secret_key = 'replaceme'
web_access_key = 'replaceme'
web_access_key = 'replaceme'

Loading…
Cancel
Save