Release beta: Remote access, auto-update, settings migration, and login security
This commit is contained in:
1 parent
6d785b56df
commit
f22f3bdf8d
11 files changed
+277
-45
No files matched your search
@@ -19,8 +19,30 @@ if __name__ == '__main__':
|
||||
port = settings['dashboard']['port']
|
||||
debug = settings['dashboard']['debug']
|
||||
|
||||
print(f"\n Dune Awakening Dashboard")
|
||||
print(f" http://{host}:{port}")
|
||||
print(f" Debug: {debug}\n")
|
||||
# SSL Configuration
|
||||
ssl_context = None
|
||||
ssl_cert = settings['dashboard'].get('ssl_cert')
|
||||
ssl_key = settings['dashboard'].get('ssl_key')
|
||||
|
||||
# Handle YAML null/None and string paths
|
||||
if ssl_cert and ssl_key and ssl_cert != 'null' and ssl_key != 'null':
|
||||
cert_path = str(ssl_cert).strip("'\"")
|
||||
key_path = str(ssl_key).strip("'\"")
|
||||
if os.path.exists(cert_path) and os.path.exists(key_path):
|
||||
ssl_context = (cert_path, key_path)
|
||||
protocol = "https"
|
||||
else:
|
||||
print(f" [WARN] SSL files not found: {cert_path}")
|
||||
protocol = "http"
|
||||
else:
|
||||
protocol = "http"
|
||||
|
||||
socketio.run(app, host=host, port=port, debug=debug, log_output=False)
|
||||
print(f"\n Dune Awakening Dashboard")
|
||||
print(f" {protocol}://{host}:{port}")
|
||||
print(f" Debug: {debug}")
|
||||
if ssl_context:
|
||||
print(f" SSL: Enabled\n")
|
||||
else:
|
||||
print(f" SSL: Disabled (use http:// not https://)\n")
|
||||
|
||||
socketio.run(app, host=host, port=port, debug=debug, log_output=False, ssl_context=ssl_context)
|
||||
Reference in new issue
Block a user