Commit Graph

190 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 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 ea5ee37b8c v8.1.8: Simplify Ansible tasks by removing or commenting unused logic
Unused and commented-out conditions were removed or commented in multiple Ansible task files to streamline execution. This cleanup reduces complexity while ensuring unnecessary operations are excluded.
2025-05-02 10:28:52 +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 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 b0251f7be8 v8.1.5: Update LetsEncrypt setup for proxy support and HAProxy integration
Removed unused local connection in Ansible roles and added support to pass proxy settings to the LetsEncrypt role. Also introduced HAProxy directory handling in the certificate generation logic to improve flexibility with server configurations.
2025-01-21 11:11:34 +03:00
Aidaho ed0c1fddee v8.1.5: Refactor HAProxy task organization for better structure
Moved HAProxy state file and stats directory creation tasks from `configure.yml` to `installation.yml` for improved logical grouping. This change ensures installation-related tasks are consolidated, enhancing maintainability and clarity.
2025-01-16 18:00:10 +03:00
Aidaho 5b8df16ba9 v8.1.5: Update HAProxy configurations and enhance error handling
Adjusted HAProxy Ansible role for ownership and removed unused peer configurations. Added error handling to HA-related views and database queries to improve stability. Updated HAProxy Exporter dependency to a newer version for compatibility.
2025-01-16 14:43:52 +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 8a99e206d4 v8.1.3: Update haproxy.service template for distribution version logic
Adjusted the condition to apply "EXTRAOPTS" only for version 7 of the distribution. This ensures compatibility and prevents unintended configuration for other versions.
2024-12-13 12:44:53 +03:00
Aidaho 9e791c7111 v8.1.3: Move HAProxy service file task to installation.yml
Relocated the task for modifying the HAProxy service file from configure.yml to installation.yml to ensure proper execution during the installation phase. This change enhances task organization and aligns with Ansible role structures.
2024-12-11 05:38:42 +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 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 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 a9aa9f2436 v8.2: Remove unnecessary blank lines and exception handling
Removed multiple unnecessary blank lines across various files to maintain code cleanliness and readability. Simplified exception handling in the `roxywi/auth.py` module and updated the import statements in `ha/routes.py`. Added a timeout parameter to the requests call in `alerting.py` for better error management.
2024-10-03 10:11:39 +03:00
Aidaho 292ca51cc7 v8.1.0
https://roxy-wi.org/changelog#8_1
2024-10-02 11:51:26 +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 6d11d04577 v8.0.1
https://roxy-wi.org/changelog#8_0_1
2024-09-03 12:09:03 +03:00
Aidaho c6e6988209 v8.0: Update credential endpoints and proxy settings
Replaced hostname lookups with unified server object retrieval in metrics and credential management endpoints. Added proxy environment variables to ModSecurity download tasks and improved error handling across various modules.
2024-08-30 17:25:31 +03:00
Aidaho a1ed81b0a2 v8.0: Comment out duplicate HAProxy installation task
Disabled a redundant HAProxy installation section in the Ansible playbook by commenting it out. Also removed the unnecessary `distro` library import and standardized the Python interpreter path in the service installation module for cleanup and consistency.
2024-08-13 00:21:42 +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 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 8f50e1b8bf v8.0: https://roxy-wi.org/changelog#8 2024-08-02 12:50:02 +03:00
Aidaho 9e6405aaa5 v7.3.2.0: Update libevent-devel package source URL
The source URL for the libevent-devel package in the Ansible task file has been updated. This change ensures that the installation fetches the package from the updated URL, thereby enhancing the reliability of the package installation process.
2024-07-24 10:53:47 +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 61dc21c822 v7.3.2.0
https://roxy-wi.org/changelog#7_3_2
2024-07-06 11:14:01 +03:00
Aidaho 4e16398f2a v7.3.0.1
https://roxy-wi.org/changelog#7_3_1
2024-06-16 08:02:08 +03:00
Aidaho ce1995bbb9 v7.3.0.0: Update CSS styles, HTML templates, and Ansible tasks
The code adjustments primarily focus on improving layout management and enhancing backend functionality. Specifically, the CSS styles have been modified to adjust the alignment and width of certain elements. Additionally, new HTML templates have been created to refine the display of server details and a new link has been added. In the ansible tasks, logic has been added to handle the installation of packages and modification of NGINX version retrieval. In the logs module, an exception has been added to handle cases where the syslog server IP is not defined.
2024-06-12 09:47:14 +03:00
Aidaho 923727b7b7 v7.3.0.0: Simplify haproxy rsyslog configuration
Removed a specific condition from the rsyslog configuration for haproxy. The condition was initially checking if the input was UDP which was unnecessary. The new configuration continues to correctly categorize logs into access, error, and status files based on their syslog severity.
2024-06-06 17:26:34 +03:00
Aidaho 7d47e94160 v7.3.0.0
https://roxy-wi.org/changelog#7_3
2024-06-05 10:20:43 +03:00
Aidaho 4caa8fdec3 v7.2.5.0: Refactor ansible setup script and fix typos
This commit includes a refactoring of the ansible setup script that simplifies the process of installing the python package 'passlib' by directly using pip3. Additionally, typos in the descriptors of certain tasks such as directory creation and SELINUX configuration have been corrected for better readability and understanding of the code.
2024-05-23 18:19:58 +03:00
Aidaho c6b2085938 v7.2.5.0: Refactor WAF installation process for better error handling
The code for the WAF installation process has been refactored to improve error handling. The `service_mod.generate_waf_inv` function is now called with `service` instead of hardcoded service names, and error messages are now more descriptive. Additionally, the Ansible role file for WAF has been renamed from `waf.yml` to `waf_haproxy.yml` to better represent its role.
2024-05-18 10:16:27 +03:00
Aidaho 88471af613 v7.2.6.0
https://roxy-wi.org/changelog#7_2_6
2024-05-15 15:38:05 +03:00
Aidaho 093b1b890e v7.2.2.0: Update WAF nginx module path in Ansible scripts
Path of the WAF nginx module in Ansible scripts has been updated from NGINX_PATH to SERVICE_PATH. This refactoring enhances the organization of the configuration files and improves code base understanding. Changes have been applied in the WAF configuration and service execution files.
2024-04-04 17:26:06 +03:00
Aidaho 8c28c5128c v7.2.2.0
https://roxy-wi.org/changelog#7_2_2
2024-04-04 14:30:07 +03:00
Aidaho 534916b1c8 v7.2.1.0
Add opening VRRP for Keepalived
2024-03-06 09:32:34 +03:00
Aidaho af25700ede v7.2.0.0
Small logging fixes
2024-02-17 15:28:34 +03:00
Aidaho 8030a69a05 v7.2.0.0
Additionally, import paths were corrected in the Python file 'app/routes/install/routes.py'. Error handling was improved in the 'install_service' function to return details of any encountered exceptions.
2024-02-16 20:47:02 +03:00
Aidaho cb03546ca2 v7.2.0.0
Small Ansible fixes
2024-02-16 16:49:13 +03:00
Aidaho 2712b25515 v7.1.2.0
Changelog: https://roxy-wi.org/changelog#7.1.2
2024-02-04 10:28:17 +03:00
Aidaho d7ba3ff76c v7.1.0.0
Fix HAProxy Docker installation and HA cluster deleting
2023-12-30 22:59:56 +03:00
Aidaho dbcb5558dc v7.1.0.0
Fix install HA cluster
2023-12-27 10:59:43 +03:00
Laurent Grawet d46e76fc4b Configure logrotate for Debian 2023-12-22 23:43:46 +01:00
Aidaho b3bea63275 v7.1.0.0
Change include to include_task in Ansible roles
2023-12-19 12:06:44 +03:00
Aidaho 1cb12d12e6 v7.1.0.0
Fix SSH port in Ansible
2023-12-17 15:02:20 +03:00
Aidaho 820b0cd3db v7.1.0.0
Changelog: https://roxy-wi.org/changelog#7.1.0
2023-12-16 10:15:59 +03:00