diff --git a/admin/index_m.html b/admin/index_m.html
index 0d9ae58..3bfce8a 100644
--- a/admin/index_m.html
+++ b/admin/index_m.html
@@ -21,6 +21,7 @@
let hosts = [];
let names = [];
+ let configFiles = [];
// the function loadSettings has to exist ...
async function load(settings, onChange) {
@@ -47,11 +48,13 @@
// Set default language
hosts = settings.hosts || [];
names = settings.names || [];
+ configFiles = settings.configFiles || [];
onChange(false);
await decryptTableFields('tableHosts', hosts, (data)=> {
values2table('hosts', data, onChange);
});
values2table('names', names, onChange);
+ values2table('configFiles', configFiles, onChange);
}
function save(callback) {
@@ -71,6 +74,7 @@
// Get edited table
obj.hosts = table2values('hosts');
obj.names = table2values('names');
+ obj.configFiles = table2values('configFiles');
encryptTableFields('tableHosts', obj.hosts);
callback(obj);
}
@@ -128,6 +132,7 @@
@@ -156,11 +161,11 @@
- |
- Name |
+ |
+ Name |
Host address |
- User |
- Password |
+ User |
+ Password |
sudo |
Docker |
Poll interval |
@@ -197,29 +202,34 @@
+
+
+
+
You need to list all your WireGuard config files here (with full path) to use the peer reactivation feature. For more information please see the readme file on github.
+
Example: host: Testhost (same as NAME on main page), Interface: wg0, config file: /etc/wireguard/wg0.conf
+
+
+
+
+
add
+
Click here to add a new config file
+
+
+
+
+ |
+ Host name |
+ Interface name |
+ config file |
+ |
+
+
+
+
+
+
+