feat(dns): Enhance DNS management with auto-generated entries and service activation
This commit is contained in:
@@ -77,5 +77,24 @@ export interface IDnsEntry {
|
||||
* Timestamp when the entry was last updated
|
||||
*/
|
||||
updatedAt?: number;
|
||||
|
||||
/**
|
||||
* Whether this DNS entry was auto-generated
|
||||
*/
|
||||
isAutoGenerated?: boolean;
|
||||
|
||||
/**
|
||||
* The service ID that created this DNS entry (for auto-generated entries)
|
||||
*/
|
||||
sourceServiceId?: string;
|
||||
|
||||
/**
|
||||
* The source type of this DNS entry
|
||||
* - manual: Created by user through UI/API
|
||||
* - service: Auto-generated from service configuration
|
||||
* - system: Created by system processes
|
||||
* - external: Synced from external DNS providers
|
||||
*/
|
||||
sourceType?: 'manual' | 'service' | 'system' | 'external';
|
||||
};
|
||||
}
|
@@ -54,8 +54,22 @@ export interface IService {
|
||||
};
|
||||
resources?: IServiceRessources;
|
||||
domains: {
|
||||
/**
|
||||
* Optional domain ID to specify which domain to use
|
||||
* If not specified, will use the default domain or require manual configuration
|
||||
*/
|
||||
domainId?: string;
|
||||
/**
|
||||
* The subdomain name (e.g., 'api', 'www', '@' for root)
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The port to expose (defaults to ports.web if not specified)
|
||||
*/
|
||||
port?: number;
|
||||
/**
|
||||
* The protocol for this domain entry
|
||||
*/
|
||||
protocol?: 'http' | 'https' | 'ssh';
|
||||
}[];
|
||||
deploymentIds: string[];
|
||||
|
Reference in New Issue
Block a user