Commit Graph

81 Commits (v8.1.3)

Author SHA1 Message Date
Aidaho cd4d54611c v8.1.3: Improve form validation and update Port Scanner AJAX logic
Replace `==` with `===` for stricter comparisons in form validation. Modify Port Scanner to use a POST request with JSON payload and change response handling to better manage error and success states.
2024-12-14 05:37:03 +03:00
Aidaho 05279fa64f v8.1.3: Refactor server identification in certs and autocomplete logic
Updated routes and JavaScript logic to use server IDs instead of server IPs for cert and backend lookups. This improves consistency and simplifies request handling. Minor fixes in formatting and structure were also applied.
2024-12-12 16:21:50 +03:00
Aidaho 6bb5124b07 v8.1.3: Refactor and expand service settings checks in ha.js
Update the JavaScript to enhance the granularity of service checks under cluster settings by incorporating nested properties for haproxy and nginx, including Docker settings. Additionally, add checks for the new Apache service and remove a console log statement for cleaner code.
2024-12-10 04:35:49 +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 b49edeb8d1 v8.1.2: Update log file check to include 'waf' condition
Previously, the check for a selected log file didn't account for the 'waf' variable. This update adds a condition to ensure that the warning is triggered only if 'waf' is also an empty string.
2024-11-19 11:03:54 +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 a8dfe6e2c4 v8.1.1: Refactor server SQL function names
Replaced multiple SQL function calls with consistent `get_server` naming. Consolidated and streamlined the function calls to `get_server` and `get_server_by_ip` to ensure consistency and improve maintainability across the codebase. Removed obsolete and redundant function definitions that were no longer in use.
2024-11-13 21:52:41 +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 e240b673fd v8.1.2: Update JS regex, un-comment CSS, and refactor metrics JS
Modified regex in ha.js to include uppercase letters. Un-commented and removed unused CSS code. Refactored the structure of options in metrics.js for readability and consistency.
2024-11-07 10:57:41 +03:00
Aidaho e9473088d5 v8.1.2: Enhance server status checks and exception handling logic
Improved the server status check by adding sessionStorage management and handling responses for better UI feedback. Changed some function signatures for consistency and better error handling. Updated routes and database initialization to reflect new functions and database versions.
2024-11-04 11:19:00 +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 aa4016d40c v8.1.0.1: Refactor server creation to use kwargs
Updated the server creation functions to utilize keyword arguments, simplifying the code and making it more maintainable. Additionally, improved the handling of VIP updates and error logging for HA clusters.
2024-10-21 15:52:29 +03:00
Aidaho 2fa880578a v8.1.0.1: Fix numeration and refactor code for consistency
Correct feature list numeration in README.md and improve JavaScript variable naming and data type consistency. Also enhance HAProxy section handling in templates and API endpoints to ensure better error handling and data processing.
2024-10-20 12:13:37 +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 ddaa3bf2dd v8.2: Refactor ServiceInstall API validation.
Replaced `ServiceInstallFromApi` with `ServiceInstall` for API validation in installation views and function parameters. Simplified the `ServiceInstall` class by removing duplicate attributes and making list and dict attributes optional.
2024-10-09 21:08:06 +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 34907769e6 v8.0.2: Refactor and optimize code handling in multiple files
Removed unused imports, improved error handling in JavaScript, and refactored server command construction for better reliability. Enhanced type checking and streamlined list processing to improve code readability and efficiency.
2024-09-26 17:38:35 +03:00
Aidaho 94e7a23383 v8.0.2: Exclude localhost from SSH configuration
Updated the logic to skip setting SSH configuration for localhost. This change ensures that SSH settings are only applied to remote servers, preventing potential conflicts or unnecessary configurations for the local machine. Additionally, simplified the SSH key name without including the group name in the UI for better clarity.
2024-09-16 16:08:53 +03:00
Aidaho 85d745f7dd v8.0.2
https://roxy-wi.org/changelog#8_0_2
2024-09-16 10:56:24 +03:00
Aidaho 8ef721d72c v8.0.1: Handle missing services and improve error handling
Enhanced error handling for missing NGINX and Keepalived services. Updated JavaScript to handle 404 errors and provide clearer messages in UI if services are not installed.
2024-09-09 22:02:00 +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 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 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
Aidaho a0866b9e88 v8.0: Refactor slave routes and clean up redundant code
Removed unused variable `req_method` and refactored URL assignment logic in `ha.js` for clarity. Updated route in `routes.py` to use defaults for `vip_id` and adjusted method checks accordingly. Removed unnecessary print statement in `ha_cluster.py`.
2024-08-28 15:10:39 +03:00
Aidaho 3ca7ca86a1 v8.0: Increase menu font size and streamline server IP handling
Updated the menu font size from 1.1em to 1.2em for better readability. Refactored JavaScript and Python code to consistently retrieve server IPs using server IDs, improving code clarity and maintainability.
2024-08-28 14:03:27 +03:00
Aidaho 975a49d818 v8.0: Handle exceptions and update data structure
Added try-except blocks for better exception handling and updated VIP retrieval logic. Changed the structure from using server names and IPs to using IDs in both backend and frontend code. Updated template selections and introduced new expected version options.
2024-08-28 11:30:05 +03:00
Aidaho 5b71fb257e v8.0: Refactor HA cluster master selection logic
Remove obsolete HTML template and streamline server selection to use JSON. Enhanced server selection and error handling in AJAX calls, fixed minor syntax issues, and updated various routes for consistency.
2024-08-27 15:57:45 +03:00
Aidaho 0391dff9eb v8.0: Remove redundant requirement files and update VIP handling
Removed outdated Debian, EL7, EL8, and EL9 requirement files. Improved various VIP handling and validation functionalities, including changes to VIP endpoints and associated JavaScript functions. Minor enhancements and bug fixes across multiple modules and views.
2024-08-27 12:40:15 +03:00
Aidaho 9148a31143 v8.0: Fix section value in admin settings and correct alert message
Removed the unnecessary section reassignment in admin_settings.js to ensure the correct section value is used. Also, corrected a minor formatting issue in the alert message within alerting.py for better readability.
2024-08-21 09:25:56 +03:00
Aidaho 41a8c90556 v8.0: Add DELETE endpoint for version deletion in ServiceConfigView
Added support for deleting configuration file versions via the DELETE method in ServiceConfigVersionsView. Updated corresponding routes, templates, and scripts to handle this functionality.
2024-08-20 10:39:40 +03:00
Aidaho a7a8b4b10d v8.0: Delete check_version.html and refactor version checking logic
Removed the `check_version.html` template and moved version checking to `script.js`. This refactoring simplifies the codebase by consolidating version check handling into JavaScript, removing deprecated HTML templates, and enhancing the backend logic and API routes.
2024-08-12 23:41:31 +03:00
Aidaho 41764ad4ca v8.0: Refactor admin views and JS scripts
Simplified imports and cleaned up unused functionalities in `admin/views.py`. Switched `var` to `let` in `script.js` for better scope management. Adjusted `showOverviewWaf` function for consistency. Removed `check_services` decorator from `ServiceActionView`. Enhanced `Checker` class model and improved error handling in `CheckerView`. Added `update_checker_setting_for_server` method in `checker.py`.
2024-08-04 19:24:23 +03:00
Aidaho 075d2b935b v8.0: Refactor code and fix various issues across modules
Added return_master setting, removed unnecessary code, and improved exception handling throughout the project. Key updates include enabling return_master by default, simplifying database update methods, handling empty IP exceptions more appropriately, and refining JavaScript validations.
2024-08-04 17:44:11 +03:00
Aidaho 108773c564 v8.0: Refactor user module and simplify server status check
Refactor user-related modules, updating data handling, roles, and methods. Simplify server status check process by removing event-based handling and replacing it with straightforward AJAX requests.
2024-08-03 09:25:02 +03:00
Aidaho 2022681847 v8.0: Refactor installation process feedback and retries
Commented out the JSON parsing function and added success notifications for service installations, consolidated "nice_service_name" object to variables.js, and reduced retry attempts and delay intervals in the Ansible Playbook for HAProxy installation tasks.
2024-08-02 21:54:16 +03:00
Aidaho cac743fea6 v8.0: Refactor installation process feedback and retries
Commented out the JSON parsing function and added success notifications for service installations, consolidated "nice_service_name" object to variables.js, and reduced retry attempts and delay intervals in the Ansible Playbook for HAProxy installation tasks.
2024-08-02 21:21:18 +03:00
Aidaho 7559530ca2 v8.0: Fix several bugs and update API
Corrected JavaScript methods to properly store language settings and trigger events. Fixed error handling in multiple scripts, and improved handling of keepalived version checks. Updated the requirements to use a specific ansible-core version for better compatibility.
2024-08-02 21:12:14 +03:00
Aidaho 8f50e1b8bf v8.0: https://roxy-wi.org/changelog#8 2024-08-02 12:50:02 +03:00
Aidaho dd86feb32f v7.3.2.0: Refactor server.js for improved readability and logic correction
The changes include better indentation for increased clarity. A sleep function with random duration was inserted into `serverIsUp` function for pacing. Additional changes include uncommenting server status messages and updating the attribute setting for 'slavefor' to reflect accurate data. Lastly, instead of removing the server_div on an error in the EventSource, the source itself is now closed.
2024-07-20 08:56:11 +03:00
Aidaho 74562243f3 v7.3.2.0: Update AJAX request parameter in add.js
This commit changes the element ID fetched to set the 'serv' parameter in an AJAX request. The 'serv' value source has been altered from '#serv_for_vars' to '#serv_for_lets'. This update ensures that the correct data is passed when making the request.
2024-07-18 15:32:51 +03:00
Aidaho e09103de7d v7.3.3.0
https://roxy-wi.org/changelog#7_3_3
2024-07-16 08:45:28 +03:00
Aidaho 508f7d4cc1 v7.3.2.0: Refactor javascript code and update error handling in API
This commit includes two major changes. Javascript code in udp.js has been refactored to fix the sequence of operations. We have moved the getScript function inside the bracket to ensure smoother operation. Also, error handling in api_funct.py has been simplified and made more consistent by passing json.loads instead of raw strings to install_service method, and by directly setting 'e' as a value in case of exceptions. A minor style change has also been added on ha_cluster.html.
2024-07-10 09:57:11 +03:00