diff --git a/rootfs/standard/var/www/mynode/settings.py b/rootfs/standard/var/www/mynode/settings.py index 48a08e93..00b0cae1 100644 --- a/rootfs/standard/var/www/mynode/settings.py +++ b/rootfs/standard/var/www/mynode/settings.py @@ -863,6 +863,18 @@ def regen_https_certs_page(): flash("HTTPS Service Restarting", category="message") return redirect(url_for(".page_settings")) +@mynode_settings.route("/settings/regen-ssh-keys") +def regen_ssh_keys_page(): + check_logged_in() + + #os.system("rm -f /home/bitcoin/.mynode/.gensshkeys") + os.system("rm -rf /etc/ssh/ssh_host_*") + os.system("dpkg-reconfigure openssh-server") + os.system("systemctl restart ssh") + + flash("SSH Service Restarting", category="message") + return redirect(url_for(".page_settings")) + @mynode_settings.route("/settings/regen-electrs-certs") def regen_electrs_certs_page(): check_logged_in() diff --git a/rootfs/standard/var/www/mynode/templates/settings.html b/rootfs/standard/var/www/mynode/templates/settings.html index 3ce47862..46ddc256 100644 --- a/rootfs/standard/var/www/mynode/templates/settings.html +++ b/rootfs/standard/var/www/mynode/templates/settings.html @@ -111,6 +111,11 @@ "

Would you still like to restart QuickSync?

", okFunction) }); + $("#show_quicksync").on("click", function() { + $("#show_quicksync").hide(0); + $("#show_quicksync_message").hide(0); + $("#quicksync_container").show(); + }); $("#reboot-device").on("click", function() { // Enable electrs @@ -999,48 +1004,54 @@
QuickSync
-
Toggle QuickSync
{% if is_quicksync_disabled %} - Enabling QuickSync will help speed up syncing only during the initial block download period by downloading a pre-validated copy of the blockchain. It is no longer recommended. -
- Enable QuickSync - {% else %} - Disabling QuickSync will remove the QuickSync files and stop the process. This may save significant disk space. -
- Disable QuickSync +

QuickSync is no longer recommended.

+ {% endif %} +
+
Toggle QuickSync
+ {% if is_quicksync_disabled %} + Enabling QuickSync will help speed up syncing only during the initial block download period by downloading a pre-validated copy of the blockchain. It is no longer recommended. +
+ Enable QuickSync + {% else %} + Disabling QuickSync will remove the QuickSync files and stop the process. This may save significant disk space. +
+ Disable QuickSync + {% endif %} - {% if not is_quicksync_disabled %} -
+ {% if not is_quicksync_disabled %} +
-
Restart QuickSync
- This will reset Bitcoin and redownload the blockchain via QuickSync. -
- - -
- -
QuickSync Rates
- You can control the background upload and download rates for QuickSync. This helps the myNode network. -
- -
-

Download Rate

-
-
-
- - -

Upload Rate

-
-
-
- - +
Restart QuickSync
+ This will reset Bitcoin and redownload the blockchain via QuickSync.
- -
- {% endif %} + + +
+ +
QuickSync Rates
+ You can control the background upload and download rates for QuickSync. This helps the myNode network. +
+ +
+

Download Rate

+
+
+
+ + +

Upload Rate

+
+
+
+ + +
+ +
+ {% endif %} +
@@ -1080,6 +1091,13 @@
+
SSH Keys
+ This will regenerate your SSH host keys. +
+ Regenerate + +
+
Reinstall Applications
If you are having issues with a specific application, you can try to reinstall them via the list below.