diff --git a/dashboard.py b/dashboard.py index 7690840f..94b3f10c 100644 --- a/dashboard.py +++ b/dashboard.py @@ -8,7 +8,6 @@ conf_location = "/etc/wireguard" app = Flask("Wireguard Dashboard") app.config['TEMPLATES_AUTO_RELOAD'] = True -# app.config['STATIC_AUTO_RELOAD'] = True css = "" def get_conf_peers_data(config_name): @@ -115,7 +114,7 @@ def get_conf_list(): for i in os.listdir(conf_location): if ".conf" in i: i = i.replace('.conf','') - temp = {"conf":i, "status":get_conf_status(i)} + temp = {"conf":i, "status":get_conf_status(i), "public_key": get_conf_pub_key(i)} conf.append(temp) return conf diff --git a/static/conf.png b/static/conf.png new file mode 100644 index 00000000..a89ff190 Binary files /dev/null and b/static/conf.png differ diff --git a/static/index.png b/static/index.png new file mode 100644 index 00000000..02aea77a Binary files /dev/null and b/static/index.png differ diff --git a/templates/index.html b/templates/index.html index 9bde7586..3f3b4abd 100644 --- a/templates/index.html +++ b/templates/index.html @@ -43,9 +43,16 @@
{{i['conf']}}
-
Status: {{i['status']}} - -
+
+
+ STATUS +
{{i['status']}}
+
+
+ PUBLIC KEY +
{{i['public_key']}}
+
+
{%endfor%}