feat: Add API endpoints and UI for managing application settings, deploy servers, and Git servers.

This commit is contained in:
2026-03-13 13:10:32 -04:00
parent 7a1d90f96d
commit deadc684c7
7 changed files with 12 additions and 5 deletions
+1
View File
@@ -136,6 +136,7 @@ export interface GitServer {
}
export interface AppConfig {
FOXY_HOME: string;
FOXY_WORKSPACE: string;
GITEA_SERVER: string;
DEPLOYMENT_SERVER: string;
+2
View File
@@ -19,6 +19,7 @@ export default function SettingsPage() {
setMessage('');
try {
await api.updateConfig({
FOXY_HOME: config.FOXY_HOME,
FOXY_WORKSPACE: config.FOXY_WORKSPACE,
GITEA_SERVER: config.GITEA_SERVER,
DEPLOYMENT_SERVER: config.DEPLOYMENT_SERVER,
@@ -37,6 +38,7 @@ export default function SettingsPage() {
}
const fields: { key: keyof AppConfig; label: string; icon: string; editable: boolean; secret?: boolean }[] = [
{ key: 'FOXY_HOME', label: 'Home OpenClaw (Conteneur)', icon: '🏠', editable: true },
{ key: 'FOXY_WORKSPACE', label: 'Workspace Foxy (Conteneur)', icon: '📁', editable: true },
{ key: 'GITEA_SERVER', label: 'Serveur Gitea', icon: '🌐', editable: true },
{ key: 'GITEA_OPENCLAW_TOKEN', label: 'Token Gitea', icon: '🔑', editable: false, secret: true },