mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-26 14:34:00 +00:00
Add electrum server cert reset button
This commit is contained in:
parent
04e3e867cb
commit
83f27496e3
|
@ -494,6 +494,19 @@ def regen_https_certs_page():
|
|||
flash("HTTPS Service Restarted", category="message")
|
||||
return redirect(url_for(".page_settings"))
|
||||
|
||||
@mynode_settings.route("/settings/regen-electrs-certs")
|
||||
def regen_electrs_certs_page():
|
||||
check_logged_in()
|
||||
|
||||
# Touch files to trigger re-checking drive
|
||||
os.system("rm -rf /home/bitcoin/.mynode/electrs")
|
||||
os.system("rm -rf /mnt/hdd/mynode/settings/electrs")
|
||||
os.system("sync")
|
||||
os.system("systemctl restart tls_proxy")
|
||||
|
||||
flash("Electrum Server Service Restarted", category="message")
|
||||
return redirect(url_for(".page_settings"))
|
||||
|
||||
@mynode_settings.route("/settings/reinstall-app")
|
||||
def reinstall_app_page():
|
||||
check_logged_in()
|
||||
|
|
|
@ -796,6 +796,14 @@
|
|||
Advanced: This will delete your Electrum Server data and reboot your device.
|
||||
<br/>
|
||||
<a href="/settings/reset-electrs" class="ui-button ui-widget ui-corner-all settings_button">Reset Data</a>
|
||||
|
||||
<div class="divider"></div>
|
||||
|
||||
<div class="settings_block_subheader">Reset Electrum Server Certificates</div>
|
||||
This will regenerate your Electrum Server certificates.
|
||||
<br/>
|
||||
<a href="/settings/regen-electrs-certs" class="ui-button ui-widget ui-corner-all settings_button">Regenerate</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user