mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-24 19:08:53 +03:00
[PR #2144] [CLOSED] Allow Exporting and Importing of servers #1778
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pelican-dev/panel/pull/2144
Author: @notAreYouScared
Created: 1/28/2026
Status: ❌ Closed
Base:
main← Head:charles/ex-im-servers📝 Commits (8)
158a5bcinit21ca789use langebc5164oh stan2ce53b2Merge remote-tracking branch 'origin/main' into charles/ex-im-servers826701cupdates5a56af4tweak actionadb0f12server creatorbb4d55cstan📊 Changes
12 files changed (+844 additions, -3 deletions)
View changed files
📝
app/Filament/Admin/Resources/Eggs/Pages/ListEggs.php(+1 -1)📝
app/Filament/Admin/Resources/Plugins/PluginResource.php(+1 -1)📝
app/Filament/Admin/Resources/Servers/Pages/EditServer.php(+11 -0)📝
app/Filament/Admin/Resources/Servers/Pages/ListServers.php(+2 -0)➕
app/Filament/Components/Actions/ExportServerConfigAction.php(+60 -0)➕
app/Filament/Components/Actions/ImportServerConfigAction.php(+87 -0)➕
app/Http/Controllers/Api/Application/Servers/ServerConfigController.php(+76 -0)➕
app/Services/Servers/Sharing/ServerConfigCreatorService.php(+267 -0)➕
app/Services/Servers/Sharing/ServerConfigExporterService.php(+106 -0)➕
app/Services/Servers/Sharing/ServerConfigImporterService.php(+194 -0)📝
lang/en/admin/server.php(+36 -0)📝
routes/api-application.php(+3 -1)📄 Description
This pull request introduces a comprehensive server configuration import/export feature. It allows server configurations to be exported to YAML files (including settings, allocations, and variables) and imported from such files, both via the Filament admin UI and a new API controller.
Import/Export Actions (UI):
ExportServerConfigActionandImportServerConfigActionto the Filament admin UI, enabling users to export a server's configuration as a YAML file and import a server from a YAML file, respectively. These actions include options for customizing what is included in the export and error handling for imports.API Endpoints:
ServerConfigControllerwith endpoints to export a server’s configuration as a downloadable YAML file and to create a server from an uploaded YAML configuration. Includes validation and error handling for both operations.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.