add optinal apps

This commit is contained in:
keyhan
2026-04-23 15:26:49 +03:30
parent f481a57d8f
commit 38748b0827
16 changed files with 3091 additions and 144 deletions
+16 -4
View File
@@ -13,14 +13,15 @@ export interface Application {
id: string;
name: string;
description?: string;
runtime: 'nodejs' | 'laravel' | 'wordpress';
databaseType: 'mysql' | 'postgresql' | 'none';
runtime: 'nodejs' | 'laravel' | 'wordpress' | 'go' | 'php' | 'python' | 'django' | 'dotnet';
databaseType: 'mysql' | 'postgresql' | 'mongodb' | 'mariadb' | 'none';
runtimeVersion?: string;
phpVersion?: string;
dbVersion?: string;
dbUsername?: string;
dbPassword?: string;
dbStorageSize?: string;
appStorageSize?: string;
gitUrl?: string;
gitToken?: string;
gitBranch?: string;
@@ -39,6 +40,11 @@ export interface Application {
latestImageTag?: string;
subdomain?: string;
deployments?: Deployment[];
// Optional services
enableRedis?: boolean;
enableRabbitmq?: boolean;
enableElasticsearch?: boolean;
logPaths?: string[];
// Billing & Lifecycle
planId?: string;
billingCycle?: BillingCycle;
@@ -100,14 +106,15 @@ export interface AuthResponse {
export interface CreateApplicationDto {
name: string;
description?: string;
runtime: 'nodejs' | 'laravel' | 'wordpress';
databaseType: 'mysql' | 'postgresql' | 'none';
runtime: 'nodejs' | 'laravel' | 'wordpress' | 'go' | 'php' | 'python' | 'django' | 'dotnet';
databaseType: 'mysql' | 'postgresql' | 'mongodb' | 'mariadb' | 'none';
runtimeVersion?: string;
phpVersion?: string;
dbVersion?: string;
dbUsername?: string;
dbPassword?: string;
dbStorageSize?: string;
appStorageSize?: string;
gitUrl?: string;
gitToken?: string;
gitBranch?: string;
@@ -120,6 +127,11 @@ export interface CreateApplicationDto {
port?: number;
clusterId?: string;
poolId?: string;
// Optional services
enableRedis?: boolean;
enableRabbitmq?: boolean;
enableElasticsearch?: boolean;
logPaths?: string[];
}
export interface ClusterPublic {