mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-11-21 04:23:15 +01:00
Warn about unexported App Gateway changes and restart Caddy when switching hosts to self-signed
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
{% block content %}
|
||||
{% include 'app_gateway/caddy_disabled_alert.html' %}
|
||||
{% include 'app_gateway/pending_export_alert.html' %}
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
{% include 'app_gateway/pending_export_alert.html' %}
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-header">
|
||||
<h3 class="card-title">
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
{% load i18n %}
|
||||
{% if pending_export %}
|
||||
<div class="alert alert-warning d-flex justify-content-between align-items-center">
|
||||
<span>
|
||||
<i class="icon fas fa-exclamation-triangle"></i>
|
||||
{% trans 'There are changes that have not been exported to Caddy yet.' %}
|
||||
</span>
|
||||
<form method="post" action="{% url 'export_caddy_config' %}" class="d-inline mb-0">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="next" value="{{ request.get_full_path }}">
|
||||
<button type="submit" class="btn btn-sm btn-light">
|
||||
<i class="fas fa-file-export"></i> {% trans 'Export now' %}
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
{% block content %}
|
||||
{% include 'app_gateway/caddy_disabled_alert.html' %}
|
||||
{% include 'app_gateway/pending_export_alert.html' %}
|
||||
<div class="card card-primary card-outline">
|
||||
<div class="card-body">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user