diff --git a/.docker/selfhost/schema.json b/.docker/selfhost/schema.json index b066dfbde..89e03da3f 100644 --- a/.docker/selfhost/schema.json +++ b/.docker/selfhost/schema.json @@ -123,32 +123,6 @@ } } }, - "websocket": { - "type": "object", - "description": "Configuration for websocket module", - "properties": { - "transports": { - "type": "array", - "description": "The enabled transports for accepting websocket traffics.\n@default [\"websocket\",\"polling\"]\n@link https://docs.nestjs.com/websockets/gateways#transports", - "items": { - "type": "string", - "enum": [ - "websocket", - "polling" - ] - }, - "default": [ - "websocket", - "polling" - ] - }, - "maxHttpBufferSize": { - "type": "number", - "description": "How many bytes or characters a message can be, before closing the session (to avoid DoS).\n@default 100000000", - "default": 100000000 - } - } - }, "auth": { "type": "object", "description": "Configuration for auth module", @@ -501,6 +475,32 @@ } } }, + "websocket": { + "type": "object", + "description": "Configuration for websocket module", + "properties": { + "transports": { + "type": "array", + "description": "The enabled transports for accepting websocket traffics.\n@default [\"websocket\",\"polling\"]\n@link https://docs.nestjs.com/websockets/gateways#transports", + "items": { + "type": "string", + "enum": [ + "websocket", + "polling" + ] + }, + "default": [ + "websocket", + "polling" + ] + }, + "maxHttpBufferSize": { + "type": "number", + "description": "How many bytes or characters a message can be, before closing the session (to avoid DoS).\n@default 100000000", + "default": 100000000 + } + } + }, "server": { "type": "object", "description": "Configuration for server module", @@ -634,6 +634,13 @@ "apiKey": "" } }, + "providers.anthropic": { + "type": "object", + "description": "The config for the anthropic provider.\n@default {\"apiKey\":\"\"}", + "default": { + "apiKey": "" + } + }, "unsplash": { "type": "object", "description": "The config for the unsplash key.\n@default {\"key\":\"\"}", @@ -641,6 +648,13 @@ "key": "" } }, + "exa": { + "type": "object", + "description": "The config for the exa web search key.\n@default {\"key\":\"\"}", + "default": { + "key": "" + } + }, "storage": { "type": "object", "description": "The config for the storage provider.\n@default {\"provider\":\"fs\",\"bucket\":\"copilot\",\"config\":{\"path\":\"~/.affine/storage\"}}", diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index cb680cda4..256b28daf 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -157,6 +157,7 @@ jobs: runs-on: ubuntu-latest needs: - optimize_ci + - build-server-native if: needs.optimize_ci.outputs.skip == 'false' steps: - uses: actions/checkout@v4 @@ -165,13 +166,20 @@ jobs: with: full-cache: true + - name: Download server-native.node + uses: actions/download-artifact@v4 + with: + name: server-native.node + path: ./packages/backend/native + - name: Run Check run: | yarn affine init yarn affine gql build yarn affine i18n build + yarn affine server genconfig git status --porcelain | grep . && { - echo "Run 'yarn affine init && yarn affine gql build && yarn affine i18n build' and make sure all changes are submitted" + echo "Run 'yarn affine init && yarn affine gql build && yarn affine i18n build && yarn affine server genconfig' and make sure all changes are submitted" exit 1 } || { echo "All changes are submitted" diff --git a/packages/frontend/admin/src/config.json b/packages/frontend/admin/src/config.json index 72704cfb1..61e478e8d 100644 --- a/packages/frontend/admin/src/config.json +++ b/packages/frontend/admin/src/config.json @@ -54,17 +54,6 @@ "desc": "The config for the strict throttler." } }, - "websocket": { - "transports": { - "type": "Array", - "desc": "The enabled transports for accepting websocket traffics.", - "link": "https://docs.nestjs.com/websockets/gateways#transports" - }, - "maxHttpBufferSize": { - "type": "Number", - "desc": "How many bytes or characters a message can be, before closing the session (to avoid DoS)." - } - }, "auth": { "allowSignup": { "type": "Boolean", @@ -147,6 +136,17 @@ "desc": "The config of storage for all uploaded blobs(images, videos, etc.)." } }, + "websocket": { + "transports": { + "type": "Array", + "desc": "The enabled transports for accepting websocket traffics.", + "link": "https://docs.nestjs.com/websockets/gateways#transports" + }, + "maxHttpBufferSize": { + "type": "Number", + "desc": "How many bytes or characters a message can be, before closing the session (to avoid DoS)." + } + }, "server": { "name": { "type": "String",