2024-02-22 11:56:26 +00:00
|
|
|
export interface SessionConfig {
|
|
|
|
secret: string;
|
|
|
|
appOriginUrl: string;
|
|
|
|
trustProxy: boolean;
|
|
|
|
domain: string;
|
|
|
|
}
|
|
|
|
|
2024-01-16 09:36:35 +00:00
|
|
|
export interface ServerConfig {
|
|
|
|
host: string;
|
|
|
|
port: number;
|
|
|
|
gqlPath?: string;
|
2024-02-22 11:56:26 +00:00
|
|
|
sessionSecret: string;
|
|
|
|
appOriginUrl: string;
|
|
|
|
isProduction: boolean;
|
|
|
|
session: SessionConfig;
|
2024-01-16 09:36:35 +00:00
|
|
|
}
|
|
|
|
|
2024-01-17 05:23:01 +00:00
|
|
|
export interface DatabaseConfig {
|
|
|
|
dbPath: string;
|
|
|
|
}
|
|
|
|
|
2024-02-15 11:54:57 +00:00
|
|
|
export interface GitHubConfig {
|
|
|
|
webhookUrl: string;
|
|
|
|
oAuth: {
|
|
|
|
clientId: string;
|
|
|
|
clientSecret: string;
|
2024-02-22 05:45:17 +00:00
|
|
|
};
|
2024-01-30 14:20:53 +00:00
|
|
|
}
|
|
|
|
|
2024-02-12 06:04:01 +00:00
|
|
|
export interface RegistryConfig {
|
|
|
|
restEndpoint: string;
|
|
|
|
gqlEndpoint: string;
|
|
|
|
chainId: string;
|
|
|
|
privateKey: string;
|
|
|
|
bondId: string;
|
2024-02-19 08:13:29 +00:00
|
|
|
fetchDeploymentRecordDelay: number;
|
2024-02-23 09:17:29 +00:00
|
|
|
authority: string;
|
2024-02-12 06:04:01 +00:00
|
|
|
fee: {
|
|
|
|
amount: string;
|
|
|
|
denom: string;
|
|
|
|
gas: string;
|
2024-02-22 05:45:17 +00:00
|
|
|
};
|
2024-02-12 06:04:01 +00:00
|
|
|
}
|
|
|
|
|
2024-02-22 11:56:26 +00:00
|
|
|
export interface MiscConfig {
|
|
|
|
projectDomain: string;
|
|
|
|
}
|
|
|
|
|
2024-01-16 09:36:35 +00:00
|
|
|
export interface Config {
|
|
|
|
server: ServerConfig;
|
2024-01-17 05:23:01 +00:00
|
|
|
database: DatabaseConfig;
|
2024-02-15 11:54:57 +00:00
|
|
|
gitHub: GitHubConfig;
|
2024-02-12 06:04:01 +00:00
|
|
|
registryConfig: RegistryConfig;
|
2024-02-22 11:56:26 +00:00
|
|
|
misc: MiscConfig;
|
2024-05-06 19:36:33 +00:00
|
|
|
turnkey: {
|
|
|
|
apiBaseUrl: string;
|
|
|
|
apiPublicKey: string;
|
|
|
|
apiPrivateKey: string;
|
|
|
|
defaultOrganizationId: string;
|
|
|
|
};
|
2024-01-16 09:36:35 +00:00
|
|
|
}
|