Add reload option for WireGuard service

This commit is contained in:
Eduardo Silva
2025-03-31 13:26:28 -03:00
parent 20107c73e5
commit fdc941726c
3 changed files with 62 additions and 24 deletions

View File

@@ -247,10 +247,12 @@
{% if pending_changes_warning %}
<div class="alert alert-warning" role="alert">
<h4 class="alert-heading">Update Required</h4>
<p>Your WireGuard settings have been modified. To apply these changes, please update the configuration and reload the WireGuard service.
<p>
Your WireGuard settings have been modified. To apply these changes, please update the configuration and reload the WireGuard service.
</p>
<p>
<a href="/tools/export_wireguard_config/?action=update_and_restart" class="btn btn-secondary">Update and restart service</a>
<a href="/tools/export_wireguard_config/?action=update_and_reload" class="btn btn-secondary">Update and reload service</a>
</p>
</div>

View File

@@ -8,6 +8,7 @@
<div class="card-header">
<a href='/tools/export_wireguard_config/' class='btn btn-outline-primary'>Update Configuration</a>
<a href='/tools/restart_wireguard/' class='btn btn-outline-primary'>Restart Wireguard service</a>
<a href='/tools/restart_wireguard/?mode=reload' class='btn btn-outline-primary'>Reload Wireguard service</a>
<div class="btn-group float-right" role="group" aria-label="Graph interval">
<a href="?period=6h" data-period="6h" class="btn btn-outline-primary">6h</a>