Commit Graph

57 Commits (5bf719ef1c92a186e5d9ea5ee0048b20ddd38a76)

Author SHA1 Message Date
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 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 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 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 1677f49b4a v8.2: Refactor delete_server function for clarity and efficiency
Updated delete_server to use get_server_by_id instead of select_servers. Simplified the backup check logic by directly accessing server attributes. Improved maintainability and readability by removing unnecessary loops and redundant variables.
2024-10-10 21:38:36 +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 7ec162244f v8.2: Fix whitespace inconsistencies across various modules
Refactor multiple files to correct spacing issues, including extra blank lines, misaligned parameters, and inconsistent indentation. These changes improve code readability and maintain coding standards without altering functionality.
2024-10-02 12:33:20 +03:00
Aidaho 85d745f7dd v8.0.2
https://roxy-wi.org/changelog#8_0_2
2024-09-16 10:56:24 +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 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 8f50e1b8bf v8.0: https://roxy-wi.org/changelog#8 2024-08-02 12:50:02 +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 112ecd5ce6 v7.3.1.0: Refactor and optimize server applications for better error handling and accuracy
The code changes focus on enhancing the server application's functionality by improving the error handling mechanism and streamlining the logic. Modifications include refining how servers get created, updated, and deleted, optimizing how ssh related actions are performed, and ensuring more accurate server scanning. The changes help reduce potential errors and make the application more efficient.
2024-06-16 22:54:41 +03:00
Aidaho ea8e51ee29 v7.3.1.0: Refactor server-side code to use JSON-based APIs
The commit refactors the server-side modules of the Roxy-WI web interface to use JSON-based APIs for improved data exchange. Specifically, methods for user, group and SSH management have been updated to accept and return JSON data. Simultaneously, error handling is improved to give more informative responses instead of plain strings. The client-side JavaScript code is also refactored to accommodate these changes. Additionally, some minor corrections are made in the UI templates.
2024-06-16 19:20:18 +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 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 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 c7570ec4bd v7.2.2.0
https://roxy-wi.org/changelog#7_2_2
2024-03-17 09:38:00 +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 447739c644 v7.2.0.0
Small bugs fix
2024-02-24 11:05:31 +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 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 102f3becd0 v7.1.0.0
Changelog: https://roxy-wi.org/changelog#7.1.0
2023-12-17 15:50:23 +03:00
Aidaho 1cb12d12e6 v7.1.0.0
Fix SSH port in Ansible
2023-12-17 15:02:20 +03:00
Aidaho 95dc978c3b v7.0.1.0
Changelog: https://roxy-wi.org/changelog#7.0.1
2023-10-19 16:53:37 +03:00
Aidaho 7d4478d2e6 v7.0.1.0
Changelog: https://roxy-wi.org/changelog#7.0.1
2023-10-17 11:46:04 +03:00
Aidaho c5ea14bb61 v7.0.1.0
Changelog: https://roxy-wi.org/changelog#7.0.1
2023-10-17 10:27:40 +03:00
Aidaho e935edd497 v7.0.0.0
Changelog: https://roxy-wi.org/changelog#7.0.0
2023-09-17 17:34:56 +03:00
Aidaho 4b168e8fa8 v7.0.0.0
Changelog: https://roxy-wi.org/changelog#7.0.0
2023-09-17 12:42:39 +03:00
Aidaho 4a83b3696c v6.3.18.0
Changelog: https://roxy-wi.org/changelog#6_3_18
2023-08-17 14:37:08 +03:00
Aidaho 9be5ce07f5 v6.3.11.0
Changelog: https://roxy-wi.org/changelog#6_3_11
2023-05-03 19:14:13 +03:00
Aidaho ab93673f2a v6.3.9.0
Changelog: https://roxy-wi.org/changelog#6_3_9
2023-04-02 19:58:55 +03:00
Aidaho 6adba6cc37 v6.3.8.0
Changelog: https://roxy-wi.org/changelog#6_3_8
2023-03-25 12:01:26 +03:00
Aidaho 3a4af20d27 v6.3.7.0
Changelog: https://roxy-wi.org/changelog#6_3_7
2023-03-08 16:15:15 +03:00
Aidaho be142bd8f3 v6.3.6.0
Changelog: https://roxy-wi.org/changelog#6_3_6
2023-02-28 09:55:03 +03:00
Aidaho 0054f25da7 v6.3.6.0
Changelog: https://roxy-wi.org/changelog#6_3_6
2023-02-22 10:36:20 +03:00
Aidaho 9259562776 v6.3.5.0
Changelog: https://roxy-wi.org/changelog#6_3_5
2023-02-14 19:46:41 +03:00
Aidaho df04d52eab v6.3.5.0
Changelog: https://roxy-wi.org/changelog#6_3_5
2023-02-13 17:45:45 +03:00
Pavel Loginov 14e663781b v6.3.4.0
Changelog: https://roxy-wi.org/changelog#6_3_4
2023-01-24 10:34:14 +03:00
Pavel Loginov f61276ce4c v6.3.2.0
Changelog: https://roxy-wi.org/changelog#6_3_2
2022-12-22 22:19:43 +03:00
Pavel Loginov e0b914074a v6.3.1.0
Changelog: https://roxy-wi.org/changelog#6_3_1
2022-12-09 23:08:32 +03:00
Pavel Loginov fda5deaf97 v6.3.1.0
Changelog: https://roxy-wi.org/changelog#6_3_1
2022-12-08 10:07:05 +03:00
Pavel Loginov 729df72f11 v6.3.1.0
Changelog: https://roxy-wi.org/changelog#6_3_1
2022-12-07 16:49:42 +03:00
Pavel Loginov 508e1e262c v6.3.1.0
Changelog: https://roxy-wi.org/changelog#6_3_1
2022-12-07 10:55:21 +03:00