Commit graph

7 commits

Author SHA1 Message Date
Дмитрий Саенко
971513464e исправил работу с SecretWebPath 2025-10-22 14:21:22 +03:00
Дмитрий Саенко
b687487aff добавил secretWEbPath в UI и model.Server 2025-10-22 13:48:41 +03:00
Дмитрий Саенко
cccc9914a1 исправления пути для api 2025-10-22 10:56:59 +03:00
Дмитрий Саенко
2f033c8e01 0.1.1 исправил bug с basPath 2025-10-21 09:05:17 +03:00
Дмитрий Саенко
6c3dc5ff68 Fixed the errors that prevented the project from launching and displaying the page. Fixed the modal window to correctly appear. Fixed the API to handle CRUD requests. 2025-10-09 12:18:49 +03:00
Дмитрий Саенко
c0ec0221e2 commit for check working component 2025-09-30 12:39:40 +03:00
google-labs-jules[bot]
11dc06863e feat: Add multi-server support for Sanai panel
This commit introduces a multi-server architecture to the Sanai panel, allowing you to manage clients across multiple servers from a central panel.

Key changes include:

- **Database Schema:** Added a `servers` table to store information about slave servers.
- **Server Management:** Implemented a new service and controller (`MultiServerService` and `MultiServerController`) for CRUD operations on servers.
- **Web UI:** Created a new web page for managing servers, accessible from the sidebar.
- **Client Synchronization:** Modified the `InboundService` to synchronize client additions, updates, and deletions across all active slave servers via a REST API.
- **API Security:** Added an API key authentication middleware to secure the communication between the master and slave panels.
- **Multi-Server Subscriptions:** Updated the subscription service to generate links that include configurations for all active servers.
- **Installation Script:** Modified the `install.sh` script to generate a random API key during installation.

**Known Issues:**

- The integration test for client synchronization (`TestInboundServiceSync`) is currently failing. It seems that the API request to the mock slave server is not being sent correctly or the API key is not being included in the request header. Further investigation is needed to resolve this issue.
2025-07-27 17:25:58 +02:00