setting service

This commit is contained in:
Alex Holliday committed 2026-01-17 18:29:42 +00:00
1 parent e498bd60b1
commit 048e53ea15
8 files changed
+169 -84

No files matched your search

+1
View File
@@ -6,3 +6,4 @@ export * from "@/types/network.js";
export * from "@/types/user.js";
export * from "@/types/invite.js";
export * from "@/types/recoveryToken.js";
export * from "@/types/settings.js";
+31
View File
@@ -0,0 +1,31 @@
export interface SettingsThresholds {
cpu?: number;
memory?: number;
disk?: number;
temperature?: number;
}
export interface Settings {
id: string;
checkTTL: number;
language: string;
pagespeedApiKey?: string;
systemEmailHost?: string;
systemEmailPort?: number;
systemEmailAddress?: string;
systemEmailPassword?: string;
systemEmailUser?: string;
systemEmailConnectionHost?: string;
systemEmailTLSServername?: string;
systemEmailSecure: boolean;
systemEmailPool: boolean;
systemEmailIgnoreTLS: boolean;
systemEmailRequireTLS: boolean;
systemEmailRejectUnauthorized: boolean;
showURL: boolean;
singleton: boolean;
version: number;
globalThresholds?: SettingsThresholds;
createdAt: string;
updatedAt: string;
}