Commit Graph

1147 Commits (e3ad7e86ae40fd75d2f85cd137def68a73080253)

Author SHA1 Message Date
Aidaho e3ad7e86ae v7.3.0.0: Update UDP terminology in language templates
This commit changes the term "UDP balancers" to "UDP listeners" across all language templates. This adjustment ensures consistency and correctness in how we refer to this network entity in different languages.
2024-06-12 20:49:37 +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 f049daeb3c v7.3.0.0: Refactor user and group id retrieval in Roxy-WI module
The method `check_user_group_for_flask` has been updated to first check for 'user_uuid' and 'user_group_id' within the given kwargs. If these are not available, it will fall back to retrieve 'uuid' and 'group' from the cookies. This change makes the method more flexible in terms of data source it can utilize, and improves the module's usability when parameters are directly provided.
2024-06-07 07:50:49 +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 be262b0e88 v7.3.0.0: Refactor check_user_group_for_flask function and improve error handling
Introduced an optional parameter in check_user_group_for_flask function to accept API tokens and return if it is provided. Enhanced error handling in get_all_statuses function in api_funct.py to catch and inform specific exceptions instead of returning a generic error message. Minor cleanups and import optimizations in other modules.
2024-06-06 08:53:11 +03:00
Aidaho 7d47e94160 v7.3.0.0
https://roxy-wi.org/changelog#7_3
2024-06-05 10:20:43 +03:00
Aidaho 07cdbbfab5 v7.2.5.0: Add IP address validation and server field check
This commit primarily adds a function that validates IP addresses and a function that checks if a server field is filled in the script.js file. Also, it removes the token from several ajax requests, and improves error handling in server.py. In the users.js file, it updates the server info display functionality.
2024-05-30 21:10:42 +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 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 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