Add option to regen SSH host keys
This commit is contained in:
parent
1b4eb6fff3
commit
a0319a02ed
|
@ -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()
|
||||
|
|
|
@ -111,6 +111,11 @@
|
|||
"<p>Would you still like to restart QuickSync?</p>",
|
||||
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 @@
|
|||
<a id="quicksync"></a>
|
||||
<div class="settings_block_header">QuickSync</div>
|
||||
|
||||
<div class="settings_block_subheader">Toggle QuickSync</div>
|
||||
{% 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.
|
||||
<br/>
|
||||
<a href="/settings/toggle-quicksync" class="ui-button ui-widget ui-corner-all settings_button">Enable QuickSync</a>
|
||||
{% else %}
|
||||
Disabling QuickSync will remove the QuickSync files and stop the process. This may save significant disk space.
|
||||
<br/>
|
||||
<a href="/settings/toggle-quicksync" class="ui-button ui-widget ui-corner-all settings_button">Disable QuickSync</a>
|
||||
<p id="show_quicksync_message">QuickSync is no longer recommended.</p>
|
||||
<button id="show_quicksync" class="ui-button ui-widget ui-corner-all settings_button">Show QuickSync Settings</button>
|
||||
{% endif %}
|
||||
<div id="quicksync_container" {% if is_quicksync_disabled %}style="display: none;"{%endif%}>
|
||||
<div class="settings_block_subheader">Toggle QuickSync</div>
|
||||
{% 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.
|
||||
<br/>
|
||||
<a href="/settings/toggle-quicksync" class="ui-button ui-widget ui-corner-all settings_button">Enable QuickSync</a>
|
||||
{% else %}
|
||||
Disabling QuickSync will remove the QuickSync files and stop the process. This may save significant disk space.
|
||||
<br/>
|
||||
<a href="/settings/toggle-quicksync" class="ui-button ui-widget ui-corner-all settings_button">Disable QuickSync</a>
|
||||
{% endif %}
|
||||
|
||||
{% if not is_quicksync_disabled %}
|
||||
<div class="divider"></div>
|
||||
{% if not is_quicksync_disabled %}
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="settings_block_subheader">Restart QuickSync</div>
|
||||
This will reset Bitcoin and redownload the blockchain via QuickSync.
|
||||
<br/>
|
||||
<button id="restart-quicksync" class="ui-button ui-widget ui-corner-all settings_button">Restart QuickSync</button>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="settings_block_subheader">QuickSync Rates</div>
|
||||
You can control the background upload and download rates for QuickSync. This helps the myNode network.
|
||||
<br/>
|
||||
|
||||
<form action="/settings/quicksync_rates" method="POST">
|
||||
<p><b>Download Rate</b></p>
|
||||
<div id="download-slider">
|
||||
<div id="download-handle" class="quicksync-handle ui-slider-handle "></div>
|
||||
</div>
|
||||
<input type="hidden" id="download-rate" name="download-rate"/>
|
||||
|
||||
<p><b>Upload Rate</b></p>
|
||||
<div id="upload-slider">
|
||||
<div id="upload-handle" class="quicksync-handle ui-slider-handle"></div>
|
||||
</div>
|
||||
<input type="hidden" id="upload-rate" name="upload-rate"/>
|
||||
|
||||
<div class="settings_block_subheader">Restart QuickSync</div>
|
||||
This will reset Bitcoin and redownload the blockchain via QuickSync.
|
||||
<br/>
|
||||
<input type="submit" id="quicksync_rates_submit" value="Save" class="ui-button ui-widget ui-corner-all settings_button"/>
|
||||
</form>
|
||||
{% endif %}
|
||||
<button id="restart-quicksync" class="ui-button ui-widget ui-corner-all settings_button">Restart QuickSync</button>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="settings_block_subheader">QuickSync Rates</div>
|
||||
You can control the background upload and download rates for QuickSync. This helps the myNode network.
|
||||
<br/>
|
||||
|
||||
<form action="/settings/quicksync_rates" method="POST">
|
||||
<p><b>Download Rate</b></p>
|
||||
<div id="download-slider">
|
||||
<div id="download-handle" class="quicksync-handle ui-slider-handle "></div>
|
||||
</div>
|
||||
<input type="hidden" id="download-rate" name="download-rate"/>
|
||||
|
||||
<p><b>Upload Rate</b></p>
|
||||
<div id="upload-slider">
|
||||
<div id="upload-handle" class="quicksync-handle ui-slider-handle"></div>
|
||||
</div>
|
||||
<input type="hidden" id="upload-rate" name="upload-rate"/>
|
||||
|
||||
<br/>
|
||||
<input type="submit" id="quicksync_rates_submit" value="Save" class="ui-button ui-widget ui-corner-all settings_button"/>
|
||||
</form>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -1080,6 +1091,13 @@
|
|||
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="settings_block_subheader">SSH Keys</div>
|
||||
This will regenerate your SSH host keys.
|
||||
<br/>
|
||||
<a href="/settings/regen-ssh-keys" class="ui-button ui-widget ui-corner-all settings_button">Regenerate</a>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="settings_block_subheader">Reinstall Applications</div>
|
||||
If you are having issues with a specific application, you can try to reinstall them via the list below.
|
||||
<br/>
|
||||
|
|
Loading…
Reference in New Issue
Block a user