Warn about unexported App Gateway changes and restart Caddy when switching hosts to self-signed

This commit is contained in:
Eduardo Silva
2026-11-18 18:00:06 -03:00
parent 8b18d683ab
commit 467bc48cce
8 changed files with 68 additions and 12 deletions
@@ -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 %}