refactor Authelia setup and configuration handling

This commit is contained in:
Eduardo Silva
2026-03-15 10:16:26 -03:00
parent f2c00d59ee
commit 715332f384
5 changed files with 51 additions and 28 deletions

View File

@@ -16,6 +16,11 @@ fi
# Django startup
python manage.py migrate --noinput
python manage.py collectstatic --noinput
if [[ "${CADDY_ENABLED,,}" == "true" ]]; then
echo "Exporting Caddy configuration (auth_policies.json, applications.json, routes.json)..."
python manage.py shell -c "from app_gateway.caddy_config_export import export_caddy_config; export_caddy_config('/caddy_json_export')" || echo "Failed to export Caddy configuration."
fi
if [[ "${DEV_MODE,,}" == "true" ]]; then
echo ""
echo ""