fixed gunicorn start and added stop

This commit is contained in:
Galonza Peter
2021-10-18 02:40:08 +03:00
parent f0f9ac92e6
commit 898694b9be
2 changed files with 10 additions and 4 deletions

View File

@@ -1183,6 +1183,8 @@ def run_dashboard():
Get host and port for web-server
"""
def get_host_bind():
config = configparser.ConfigParser(strict=False)
config.read('wg-dashboard.ini')
app_ip = config.get("Server", "app_ip")
app_port = config.get("Server", "app_port")