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 is no longer recommended.
+ {% endif %} +