Commit Graph

1515 Commits (4caa8fdec33c73673bc3afbe368b45b1f353b34a)

Author SHA1 Message Date
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 e5106db5ba v7.2.5.0: Add exception handling and remove commented code
This commit applies exception handling for the network operations methods and removes unused/commented-out code. The added exception handling checks for incorrect input to nettools methods and raises explicit exceptions with descriptive messages. This dramatically simplifies the debugging process, providing better visibility into runtime errors.
2024-05-19 20:14:09 +03:00
Aidaho 27494d631a v7.2.5.0: Update ansible_status with dynamic service name
In the install/routes.py, the 'run_ansible' method call in the 'install' function has been updated to dynamically pass the 'service' name, resulting in a more flexible and adaptable code. Previously, it was hardcoded to run only the 'waf_service', which limited its usage.
2024-05-18 13:47:53 +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 c56d105ef5 v7.2.5.0: Refactor execution of group changes in user settings
This commit streamlines the way user group data is handled, both in scripts and server-side logic. The group settings URL has been simplified and the logic for updating user groups also has been optimized. Eliminated unnecessary checks in the user.py module, and updated the routing logic for group data to utilize a single route with HTTP GET and PUT methods. Removed unsuccessful group changing errors.
2024-05-15 21:35:38 +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 a5174a152d v7.2.5.0
Fix interface bugs
2024-05-13 12:08:51 +03:00
Aidaho 54ca0f73f0 v7.2.5.0: Add middleware to get user params in create methods
This commit adjusts the 'create_user' and 'create_server' routes to include a decorator for getting user parameters. This will improve the handling of these methods, ensuring they receive any necessary user specific parameters.
2024-05-03 19:58:43 +03:00
Aidaho 019478f534 v7.2.5.0: Simplify SSH key handling in server module
This commit simplifies the SSH key handling functionality in the server module. Unnecessary definitions and methods for checking and handling different key types have been removed. Now, paramiko's standard load_private_key method is directly used to load the SSH keys, which has streamlined the code and made it more maintainable.
2024-05-03 17:19:16 +03:00
Aidaho b66c4d0793 v7.2.5.0
https://roxy-wi.org/changelog#7_2_5
2024-05-03 15:22:58 +03:00
Aidaho bd5af37255 v7.2.4.0: Update paths to static files in JavaScript
This commit updates the paths to several static files in various JavaScript files. The '/inc/' directory has been replaced with '/app/static/js/' to maintain consistency across the application. This change affects the ion.sound.min.js and fontawesome.min.js file locations and their corresponding references in script.js, index.html, main_head.html, and channel.js.
2024-04-19 18:12:07 +03:00
Aidaho 7df8cbad8b v7.2.4.0: Update script paths and add a new script
The JavaScript paths in many files have been updated to "/app/static/js". A new script for handling checker settings updates, "checker.js", has been added. The commit improves organisation of JavaScript resources by grouping them under a single directory and introduces new functionality for the checker service.
2024-04-19 12:32:13 +03:00
Aidaho 1954b60e13 v7.2.4.0: Update requirements and refactor date formatting function
The requirements for el9, deb, and main have been updated to specifically use version 2.27.1 of the "requests" package. In addition, the date formatting function get_time_zoned_date in common.py has been refactored. The default format for the date has been moved to the function arguments, and the function now also checks if the provided date is an instance of datetime before processing it.
2024-04-18 09:58:32 +03:00
Aidaho 5b98f1b611 v7.2.4.0: Update requirements and refactor date formatting function
The requirements for el9, deb, and main have been updated to specifically use version 2.27.1 of the "requests" package. In addition, the date formatting function get_time_zoned_date in common.py has been refactored. The default format for the date has been moved to the function arguments, and the function now also checks if the provided date is an instance of datetime before processing it.
2024-04-17 22:54:00 +03:00
Aidaho 04e39325c8 v7.2.4.0: Update date calculation to use UTC and increase version number
The commit modifies the date calculation in the database time_range checks to use the UTC timezone instead of the system's local time. This makes the time range checks more uniform and independent of the server's configuration. Additionally, it increases the version number in 'create_db.py' from '7.2.3.0' to '7.2.4.0'.
2024-04-17 17:03:42 +03:00
Aidaho b205d47372 v7.2.4.0
https://roxy-wi.org/changelog#7_2_4
2024-04-17 11:06:29 +03:00
Aidaho 73563a047e v7.2.2.0: Update error handling in waf.js and fix favicon and script paths
Refactored error handling in the waf.js file to simplify and reduce conditional checks. Also updated the paths for favicon images and included scripts to ensure accurate addressing, enhancing the consistency and reliability of the application's behavior.
2024-04-05 20:21:42 +03:00
Aidaho f17fec9403 v7.2.2.0: Add timezone support to WAF rule configuration
The update adds timezone handling for web application firewall (WAF) rule configurations using roxy_wi_tools.GetDate method. This provides flexibility to manage configurations based on the specified timezone in SQL setting.
2024-04-05 10:20:16 +03:00
Aidaho 4441a6e0b7 v7.2.2.0: Update paths in waf.js file
The paths for waf.js and the loading image in waf.js have been updated to point to the correct locations. Also, unnecessary code related to the AJAX calls for metrics and installation has been removed, simplifying the code structure.
2024-04-05 10:14:48 +03:00
Aidaho fd0f0f194b v7.2.2.0: Refactor JavaScript code and adjust paths
This commit updates variable declarations from 'var' to 'let' in 'install.js' for better scope control. It additionally includes error-handling for undefined 'select_id' in 'parseAnsibleJsonOutput' function. The 'waf.js' file is moved to the 'app/static/js' directory and paths are updated accordingly in both 'waf.js' and 'waf.html'. The success handler in 'waf.js' is also updated to use 'parseAnsibleJsonOutput'.
2024-04-04 21:19:32 +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 4382c44b92 v7.2.2.0
Fix haproxy command
2024-04-01 17:04:38 +03:00
Aidaho 58e7dc6d81 v7.2.2.0
Fix bug with updating Roxy-WI
2024-03-24 10:05:35 +03:00
Aidaho a8d401d253 v7.2.2.0
Delete debug output
2024-03-21 10:50:40 +03:00
Aidaho f57b418d74 v7.2.2.0
Fix tools status showing for Docker
2024-03-21 09:04:37 +03:00
Aidaho 396d6b85e9 v7.2.2.0
Fix JS
2024-03-18 12:54:27 +03:00
Aidaho 715187b075 v7.2.2.0
Add new deps
2024-03-18 09:36:13 +03:00
Aidaho c7570ec4bd v7.2.2.0
https://roxy-wi.org/changelog#7_2_2
2024-03-17 09:38:00 +03:00
Aidaho b185ee78c8 v7.2.1.0
Improve error handling in tools list and adjust status check command

Enhanced error handling in tools list loop within the 'common.py' file to provide more specific error messages. Additionally, the command for checking a tool's status was adjusted to remove unnecessary sudo usage. Also, updated the service check in the 'roxy.py' file from 'sshd' to 'rsyslog'.
2024-03-14 11:20:16 +03:00
Aidaho 8322ad4089 v7.2.1.0 2024-03-13 22:09:26 +03:00
Aidaho 2448b04426 v7.2.1.0
https://roxy-wi.org/changelog#7_2_1
2024-03-13 13:06:02 +03:00
Aidaho 534916b1c8 v7.2.1.0
Add opening VRRP for Keepalived
2024-03-06 09:32:34 +03:00
Aidaho 666fc39e1d v7.2.1.0
SQL fixes
2024-03-04 09:34:24 +03:00
Aidaho d1a81f937b v7.2.1.0
https://roxy-wi.org/changelog#7_2_1
2024-03-03 10:11:48 +03:00
Aidaho c0d667547f v7.2.0.0
Small fix interface for SMON
2024-03-01 11:40:58 +03:00
Aidaho 714bd71bf2 v7.2.0.0
History and Status Page fixes
2024-02-27 15:18:37 +03:00
Aidaho 392e4f4465 v7.2.0.0
SMON agent fixes
2024-02-24 21:07:18 +03:00
Aidaho ee0bd7d0de v7.2.0.0
SMON agent fixes
2024-02-24 20:45:43 +03:00
Aidaho 447739c644 v7.2.0.0
Small bugs fix
2024-02-24 11:05:31 +03:00
Aidaho 2b1f3b647a v7.2.0.0
Remove service check decorator from action_service route

The `check_services` decorator was removed from the `action_service` route in the file 'app/routes/service/routes.py'. This change simplifies the code and avoids unnecessary service checks when performing actions on a service.
2024-02-18 11:40:17 +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 f981819505 v7.2.0.0
Changelog: https://roxy-wi.org/changelog#7.2.0
2024-02-16 09:50:27 +03:00
Aidaho 80ffaddb6d v7.1.2.0
Refactor imports and remove redundant paths

This commit updates the sys.path.append and import statements in multiple files for better readability and maintainability. Unused or unnecessary paths were removed, and module imports were restructured for a more logical organization.
2024-02-04 16:09:25 +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 ac133b5e9c v7.1.1.0
Fix HA cluster installation via API
2024-01-26 11:03:46 +03:00
Aidaho 79b6b7abd9 v7.1.1.0
Fix HAProxy WAF logs and config version
2024-01-25 09:11:38 +03:00
Aidaho 1cae0059ea v7.1.1.0
Fix showing SSL
2024-01-24 10:24:37 +03:00