Commit Graph

692 Commits (master)

Author SHA1 Message Date
Aidaho 073a86be80 v8.2.1: Refactor HA and Config Compare modules, optimize service installation flow, and add Spanish language support
- Replaced unused AJAX and JS methods (`cleanProvisioningProcess`, `showErrorStatus`) in HA management with simpler, streamlined equivalents. Moved HA cluster data fetching logic to the new endpoint (`HAClustersView`).
- Introduced `compareConfig()` method to improve configuration diff rendering. Removed redundant templates (`compare.html`), leveraging external Diff2Html library.
- Simplified HA service installation logic in `Reconfigure`, enabling task-based tracking. Removed redundant progress logic (`increaseProgressValue`, `checkInstallResp`).
- Added support for Spanish localization (`es-ES.html`, updated `languages.html` template).
- Replaced Python PagerDuty SDK for a more actively maintained library.
- Fixed description rendering logic in HA cluster templates.
- Updated Nginx to support multiple aliases per server.
- Minor dependency updates and comments cleanup in Ansible WAF tasks.
2025-07-03 17:57:53 +03:00
Aidaho 44ddae6dd1 v8.2.0.4: add the possibility to downgrade HAProxy 2025-05-27 11:25:30 +03:00
Aidaho 420694793d v8.2.0.4: bug fix. add new HAProxy versions 2025-05-24 09:14:19 +03:00
Aidaho 1cabf7fff9 v8.2.0 2025-05-21 10:00:20 +03:00
Aidaho bc2fe10485 v8.2.0: Refactor metrics and user group handling for better efficiency
Replaced raw SQL queries with ORM-based queries in metrics retrieval functions, ensuring better maintainability and readability. Simplified logic in `check_user_group_for_flask` and `get_dick_permit` by removing redundant arguments and unused paths. Adjusted the flow for consistent error handling and improved data grouping across various time ranges for metrics calculations.
2025-05-17 10:49:31 +03:00
Aidaho 40703576af v8.2.0: Refactor and modularize Nginx proxy addition logic
Redesigned Nginx proxy addition by removing unused templates, consolidating scripts, and introducing new modular template structures. Improvements include dynamic JavaScript handlers, enhanced UI flow, better SSL and upstream management, and new functionality for headers and location-specific configurations. Cleaned up obsolete code and adjusted database version updating logic.
2025-05-14 20:31:25 +03:00
Aidaho da34363cb4 v8.1.8: Remove HAProxy enterprise support.
Removed all references to HAProxy enterprise functionality from the codebase, including UI elements, backend logic, and service settings. Standardized status key casing across files and improved error handling in `_service_status` method.
2025-05-10 18:47:53 +03:00
Aidaho 9e2b5ec058 v8.1.8: Refactor service settings template and logging logic.
Simplify and consolidate service settings template by introducing reusable variables and reducing code redundancy. Remove unnecessary imports and streamline logging logic to eliminate redundant parameters.
2025-05-01 10:47:03 +03:00
Aidaho 3b8cc74065 v8.1.8: Add HA cluster creation progress modal to template
Introduce a new modal to display HA cluster creation progress with messages and a progress bar. This enhances the user interface by providing clear feedback during the creation process.
2025-04-28 11:32:15 +03:00
Aidaho e36050d8fd v8.1.8: Refactor error handling, cleanup unused variables, and fix intervals
Removed unnecessary error handling logic and unused `error_mess` variables. Adjusted HA cluster polling interval from 10 minutes to 1 minute for better responsiveness. Cleaned up redundant HTML elements and ensured consistent coding practices across files.
2025-04-27 19:51:54 +03:00
Aidaho c765616b1b v8.1.8: Remove unused code and improve variable naming.
Removed the obsolete `Reconfigure` function from UDP.js and cleaned up unused parameters in config.py. Enhanced logging by simplifying error messages in auth.py and clarified variable naming for HA routes. These changes improve readability and maintainability.
2025-04-26 22:33:15 +03:00
Aidaho 33b18a4a35 v8.1.8: Refactor logging and update ModSec highlight logic
Refactored Roxy-WI logging to remove redundant arguments and streamline log formatting. Improved ModSecurity CodeMirror mode with enhanced keyword, operator, flag, and action support, ensuring better syntax highlighting. Replaced Nginx and HAProxy modes in WAF templates with ModSec mode.
2025-04-25 09:44:36 +03:00
Aidaho d3747e1b48 v8.1.8: Remove SSL-related sections from the add.html template
Removed the sections handling SSL certificates and Let's Encrypt in the add.html template. This includes related scripts, HTML elements, and form inputs for certificate management. Streamlines the template by eliminating unused or unnecessary functionality related to SSL.
2025-04-16 19:12:58 +03:00
Aidaho 615c4b3e4c v8.1.8: Add new SSL management table and improve JS logic
Introduced an SSL management table with dynamic fields for server, type, domain, and credentials in `ssl.html`. Simplified JS logic by removing redundant conditions and enhanced `showConfigFiles` to support preselection. Added `makeid` function for generating random strings.
2025-04-16 19:12:26 +03:00
Aidaho 3ca015d279 v8.1.8: Add SSL certificate management feature
Introduced support for uploading, viewing, and deleting SSL certificates via a dedicated web interface. Updated routing, templates, and backend logic to handle certificate types (pem, key, crt) and improved integration with SSL-related UI components.
2025-04-16 18:41:21 +03:00
Aidaho 61a7c342a8 v8.1.7: Refactor and enhance cert routes and frontend blacklist handling
Replaced unsafe input checks with Pydantic validation, improving route type safety. Adjusted blacklist handling logic in the frontend and templates for better consistency. Fixed minor JS selector bugs and added hidden input for group_id in the config template.
2025-04-10 08:52:37 +03:00
Aidaho 53d319f5e0 v8.1.7: Add "log" mode, improve metrics, and refactor logging
Extended "mode" options to include "log" for frontend/backend configurations. Enhanced RAM/CPU metrics to better handle remote servers and removed redundant logic. Streamlined logging with structured formatting, improved error handling, and removed unnecessary parameters.
2025-04-05 12:33:22 +03:00
Aidaho aedba82e7c v8.1.6.1: Update version, improve WAF handling, and fix minor bugs
Updated the version in the database to 8.1.6.1. Adjusted WAF log handling to correctly process parameters and URLs, improving functionality and accuracy. Fixed minor issues, including initializing variables and handling edge cases for section edits in configurations.
2025-03-17 18:39:08 +03:00
Aidaho 66f1760ca3 v8.1.6: Add support for editing specific config sections and templates
Enhanced configuration management by introducing support for editing specific sections in HAProxy configurations via `edit_section`. Added server templates with structured validation, improved file encoding handling, and addressed edge cases in multiple components for greater robustness.
2025-03-14 12:29:16 +03:00
Aidaho 32db39fdd5 v8.1.6: Fix minor bugs and enhance security in multiple modules
Removed a debug print statement, added error handling for SSH commands, updated token inputs to be password-protected, and fixed a log path in Fail2Ban configuration. Updated server list handling in templates to improve code consistency. These changes enhance reliability, security, and maintainability across the application.
2025-03-13 10:45:39 +03:00
Aidaho f3f540c291 v8.1.6: Add UDP listener checker functionality
Introduces the ability to enable or disable a checker service for UDP listeners. Includes UI updates, database migration, new API route, and backend logic to handle checker settings on UDP listeners.
2025-02-19 10:49:07 +03:00
Aidaho e53a7445c7 v8.1.5: Add UDP backend status checks and refine cluster HA handling
Introduced backend status monitoring for UDP listeners and enhanced HA cluster checks. Updated several templates and JavaScript files to reflect these changes, improving service visibility and coordination. Minor code refactoring and removed unused functions for cleaner implementation.
2025-01-04 10:49:28 +03:00
Aidaho c8b1822e8a v8.1.3: Update default versions for HAProxy and Nginx
Updated the default HAProxy version to 3.1.1-1 and Nginx experimental version to 1.4.0 in the templates and service installation logic. This ensures compatibility with the latest releases and improves functionality.
2024-12-28 11:09:20 +03:00
Aidaho e8bc512712 v8.1.3: Refactor Let's Encrypt handling and improve template logic
Added `by_id='true'` to the `select()` function in `add.html` for enhanced identification. Refactored `_create_env` in `lets_encrypt_views.py` to be static and updated the `run_ansible` call to use `ansible_role`. Removed redundant commented-out code from the Let's Encrypt Ansible task file.
2024-12-22 19:06:39 +03:00
Aidaho 91802b3cd6 v8.1.3: Add dark theme support and update HAProxy management.
Introduce a dark theme for the web interface, enabling users to switch between themes seamlessly. Additionally, enhance HAProxy management by updating available versions and streamlining API routes for list management, ensuring smoother operations and integration.
2024-12-03 15:28:55 +03:00
Aidaho ddd9a1b92d v8.1.2: Refactor IP validation and type annotations in routes
Replaced common.is_ip_or_dns() with pydantic type validation in various route functions to ensure input consistency and clarity. Updated several methods to use Union[IPvAnyAddress, DomainName] for typing and added necessary imports. Also refined templates and helper functions for better readability.
2024-11-30 10:21:03 +03:00
Aidaho ac5a6093a5 v8.1.2: Refactor IP validation and type annotations in routes
Replaced common.is_ip_or_dns() with pydantic type validation in various route functions to ensure input consistency and clarity. Updated several methods to use Union[IPvAnyAddress, DomainName] for typing and added necessary imports. Also refined templates and helper functions for better readability.
2024-11-19 15:34:14 +03:00
Aidaho 5c28a47cae v8.1.2: Add IP calculator and improve nettools forms
Implemented an IP calculator feature using the netaddr library and added corresponding JS and HTML form elements. Enhanced existing nettools forms by utilizing Flask-Pydantic for validation and AJAX request improvements. Removed deprecated alert selection methods in the database checker module. Updated language translations and incremented version to 8.1.2.
2024-11-18 11:34:25 +03:00
Aidaho 9548ac6d9a v8.1.1: Update WAF overview and simplify service ID handling
Removed redundant service checks for 'haproxy' and 'nginx' in WAF routes. Simplified action confirmation logic by using hidden input to fetch server names dynamically. Updated database operation calls to be concise for deleting and updating group settings.
2024-11-10 11:09:07 +03:00
Aidaho 0128321642 v8.1.2: Refactor database interactions and cleanup unused code
Refactor multiple functions to call `get_group` instead of `get_group_name_by_id`. Remove the `ApiToken` class and related database table operations. Simplify the template logic in `show_sub_ovw.html` by removing unnecessary loop and context variables. Cleanup unused imports and streamline several function implementations across the codebase.
2024-11-04 16:46:54 +03:00
Aidaho c437274cfe v8.1.2: Switch to retrieving server data by IP and hostname
Updated multiple functions across the codebase to use the `get_server_by_ip` method instead of iterating over server lists. This change simplifies the code, improves readability, and reduces potential errors. Adjusted SQL queries to remove unnecessary conditions and parameters related to master servers.
2024-11-03 13:00:43 +03:00
Aidaho 8ebf934f06 v8.1.2: Delete letsencrypt.sh script and add LetsEncrypt API endpoints
Remove the letsencrypt.sh script and integrate LetsEncrypt functionality directly into the web application via new API endpoints. This includes creating, updating, retrieving, and deleting LetsEncrypt configurations, improving maintainability and user interaction with the LetsEncrypt feature.
2024-11-03 10:12:08 +03:00
Aidaho 96f9f71a2b v8.1.0.1: Refactor SSH and WAF modules for improved logic and readability
Refactored SSH credential handling to better support shared credentials and improve code readability. Simplified WAF mode changes by switching from hostname to server ID, enhancing reliability. Updated various templates and functions to align with these changes.
2024-10-22 11:13:16 +03:00
Aidaho 98fb3fb288 v8.1.0.1: Refactor SSH permission checks and streamline database connection
Implement additional checks for shared SSH credential editing and deletion. Refactored database connection logic to use keyword arguments for improved readability and maintainability.
2024-10-21 09:35:25 +03:00
Aidaho bf242a8eb2 v8.2: Rework backup handling to use server_id instead of server
Refactored code to use `server_id` in place of `server` across various modules to improve clarity and consistency. Updated database migrations, schema definitions, API documentation, and templates accordingly. Additionally, fixed related issues in the backup creation and management logic.
2024-10-10 15:54:22 +03:00
Aidaho ca1a39ed96 v8.2: Refactor log handling and cleanup unused code
Convert WAF parameter from string to integer for consistency. Update JavaScript comparison operators for strict equality checks. Remove unused functions and intro.js library to streamline and simplify the codebase.
2024-10-08 15:56:13 +03:00
Aidaho b3b6f7f596 v8.2: Fix strict equality check and remove unused intro.js template
Updated script.js to use strict equality for empty string checks and removed an obsolete inclusion of intro.js in admin.html. These changes enhance code accuracy and reduce unnecessary clutter in the project.
2024-10-03 19:53:05 +03:00
Aidaho 82662042e3 v8.2: Remove unused intro.js templates and mappings
Deleted the admin introduction script and associated source map since they are no longer required. This cleanup helps to reduce clutter and improve maintainability of the project.
2024-10-03 14:37:04 +03:00
Aidaho 18f9b11f35 v8.2: Remove statAgriment function and improve variable declarations.
Commented out the unused statAgriment function and its associated event listener. Replaced var with let in various parts of the script for better scope handling and used triple equals for strict comparison. Also added a new script to the add.html template.
2024-10-02 17:10:32 +03:00
Aidaho 292ca51cc7 v8.1.0
https://roxy-wi.org/changelog#8_1
2024-10-02 11:51:26 +03:00
Aidaho 3e849e75fe v8.0.2: Refactor conditional checks and remove unused import
Streamlined conditional checks using 'in' for better readability in `show_services_ovw.html`. Additionally, removed an unused import in `cred_views.py` and updated database creation script for efficiency.
2024-09-18 22:31:07 +03:00
Aidaho 1dbbf54986 v8.0.2: Remove Grafana integration
Deleted the Grafana role from Ansible playbooks and related references in various files. This includes updates to HTML templates, route definitions, and database entries to ensure no remnants of Grafana configuration remain.
2024-09-17 08:52:36 +03:00
Aidaho 85d745f7dd v8.0.2
https://roxy-wi.org/changelog#8_0_2
2024-09-16 10:56:24 +03:00
Aidaho 1f9942aa7d v8.0.1: Refactor variable types and names for clarity
Updated variable types from `var` to `let` in script.js for block scope. Renamed `file_name` to `file_path` for consistency across templates and models. Added additional error conditions for alert handling in the JavaScript code.
2024-09-09 09:52:33 +03:00
Aidaho 77701e1d9f v8.0.1: Update NGINX service handling and fix template service lookup
Refactor NGINX service command execution for dockerized environments, improving status and process parsing. Fix an issue in the service template by correcting session storage key handling and ensure correct directory ownership initialization.
2024-09-06 11:38:39 +03:00
Aidaho 3423595d9b v8.0.1: Remove keepalived service and improve service status handling
Removed all references and functionality related to keepalived service. Added detailed status handling for various services including nginx, haproxy, and apache, improving the accuracy of the status checks and error handling for each service. Adjusted user interface elements to reflect the service status changes more clearly.
2024-09-04 21:16:22 +03:00
Aidaho 6d11d04577 v8.0.1
https://roxy-wi.org/changelog#8_0_1
2024-09-03 12:09:03 +03:00
Aidaho 0727c2979f v8.0: Optimize AJAX call and unify button styling in templates
Updated the AJAX call to send JSON data with proper content type and handle the response more robustly. Also standardized the button styling across delver.html and configver.html templates for a consistent user experience.
2024-09-02 00:37:08 +03:00
Aidaho cde708065b v8.0: Refactor config logic to streamline cfg retrieval
Moved `cfg` retrieval inside the `if` block to ensure it is only fetched when `serv`, `edit`, and other conditions are met. Also, removed an unnecessary hidden input from the HTML template.
2024-09-01 22:39:57 +03:00
Aidaho 4e5f4b2bd1 v8.0: Add new icons and update HA view validation
Added new icons for Keepalived and Roxy services in the static images and integrated them into the main menu. Updated HA view validation to use `eth` instead of `ip` and changed certain property types from string to integer. Enhanced error handling and data processing for the configuration routes and improved JSON data handling in the script.js file.
2024-09-01 20:51:12 +03:00