snowballtools-base/packages/backend/src/config.ts
Nabarun Gogoi a58b9b255e
Publish app deployment record in Laconic registry on creating new deployments (#62)
* Publish record in laconic registry on creating project and deployment

* Refactor publish record method

* Set name for the published record

* Publish application deployment request

* Add README for publishing record

* Add await in add project resolver method

* Update meta data for deployment request record

* Remove title field from deployment entity

* Refactor service and registry class for publishing record

* Add record data to project and deployment entity

* Set record id and data as nullable in project entity

---------

Co-authored-by: neeraj <neeraj.rtly@gmail.com>
2024-02-12 11:34:01 +05:30

35 lines
586 B
TypeScript

export interface ServerConfig {
host: string;
port: number;
gqlPath?: string;
}
export interface DatabaseConfig {
dbPath: string;
}
export interface GithubOauthConfig {
clientId: string;
clientSecret: string;
}
export interface RegistryConfig {
restEndpoint: string;
gqlEndpoint: string;
chainId: string;
privateKey: string;
bondId: string;
fee: {
amount: string;
denom: string;
gas: string;
}
}
export interface Config {
server: ServerConfig;
database: DatabaseConfig;
githubOauth: GithubOauthConfig;
registryConfig: RegistryConfig;
}