DockFlare v1.8.6
This release introduces a usability improvement: the ability to edit manual ingress rules directly from the web UI. You no longer need to delete and recreate a manual rule to make changes.
✨ New Features
- Edit Manual Rule Functionality:
- A new "Edit" button now appears next to each manual rule in the "Managed Ingress Rules" table.
- Clicking "Edit" opens a modal pre-populated with the rule's current settings (hostname, path, service, access policy, etc.).
- The backend logic intelligently handles updates by cleanly removing old, unused Cloudflare resources (DNS records, Access Applications) and creating/updating the new ones, preventing orphaned configurations on your Cloudflare account.
Improvements
- Improved Code Reusability: A shared helper function was created in
main.js
to handle path input logic for both the "Add" and "Edit" modals, reducing code duplication. - Enhanced Code Quality: This refactoring improves overall code organization, maintainability, and adherence to web development best practices.
Changed Files
dockflare/app/web/routes.py
: Added the new/ui/manual-rules/edit
route and its handler function to process rule updates.dockflare/app/templates/status_page.html
: Added the "Edit" button and the "Edit Rule" modal structure.dockflare/app/static/js/main.js
: Added functions to manage the edit modal's behavior and refactored shared logic.
How to Upgrade
To upgrade your Docker Compose deployment, run the following commands in the directory containing your docker-compose.yml
file:
# Pull the latest Docker image for the backend
docker-compose pull dockflare
# Recreate the container with the new image
docker-compose up -d --force-recreate dockflare