mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-26 10:45:57 +08:00
chore(server): hide not configurable module (#11406)
This commit is contained in:
@@ -1,49 +1,10 @@
|
||||
{
|
||||
"redis": {
|
||||
"db": {
|
||||
"type": "Number",
|
||||
"desc": "The database index of redis server to be used(Must be less than 10).",
|
||||
"env": "REDIS_SERVER_DATABASE"
|
||||
},
|
||||
"host": {
|
||||
"type": "String",
|
||||
"desc": "The host of the redis server.",
|
||||
"env": "REDIS_SERVER_HOST"
|
||||
},
|
||||
"port": {
|
||||
"type": "Number",
|
||||
"desc": "The port of the redis server.",
|
||||
"env": "REDIS_SERVER_PORT"
|
||||
},
|
||||
"username": {
|
||||
"type": "String",
|
||||
"desc": "The username of the redis server.",
|
||||
"env": "REDIS_SERVER_USERNAME"
|
||||
},
|
||||
"password": {
|
||||
"type": "String",
|
||||
"desc": "The password of the redis server.",
|
||||
"env": "REDIS_SERVER_PASSWORD"
|
||||
},
|
||||
"ioredis": {
|
||||
"type": "Object",
|
||||
"desc": "The config for the ioredis client.",
|
||||
"link": "https://github.com/luin/ioredis"
|
||||
}
|
||||
},
|
||||
"metrics": {
|
||||
"enabled": {
|
||||
"type": "Boolean",
|
||||
"desc": "Enable metric and tracing collection"
|
||||
}
|
||||
},
|
||||
"graphql": {
|
||||
"apolloDriverConfig": {
|
||||
"type": "Object",
|
||||
"desc": "The config for underlying nestjs GraphQL and apollo driver engine.",
|
||||
"link": "https://docs.nestjs.com/graphql/quick-start"
|
||||
}
|
||||
},
|
||||
"crypto": {
|
||||
"privateKey": {
|
||||
"type": "String",
|
||||
@@ -104,18 +65,6 @@
|
||||
"desc": "How many bytes or characters a message can be, before closing the session (to avoid DoS)."
|
||||
}
|
||||
},
|
||||
"db": {
|
||||
"datasourceUrl": {
|
||||
"type": "String",
|
||||
"desc": "The datasource url for the prisma client.",
|
||||
"env": "DATABASE_URL"
|
||||
},
|
||||
"prisma": {
|
||||
"type": "Object",
|
||||
"desc": "The config for the prisma client.",
|
||||
"link": "https://www.prisma.io/docs/reference/api-reference/prisma-client-reference"
|
||||
}
|
||||
},
|
||||
"auth": {
|
||||
"allowSignup": {
|
||||
"type": "Boolean",
|
||||
|
||||
@@ -35,13 +35,10 @@ type ConfigGroup<T extends AppConfigModule> = {
|
||||
}>[];
|
||||
};
|
||||
const IGNORED_MODULES: (keyof AppConfig)[] = [
|
||||
'db',
|
||||
'redis',
|
||||
'graphql',
|
||||
'copilot', // not ready
|
||||
];
|
||||
|
||||
if (!environment.isSelfHosted) {
|
||||
if (environment.isSelfHosted) {
|
||||
IGNORED_MODULES.push('payment');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user