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
@@ -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 %}