Skip to content

Commit

Permalink
Merge branch 'main' into BC-5833-add-submissions-entities-deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
sszafGCA authored Feb 15, 2024
2 parents 43668be + 3c33c48 commit 72b00e2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions apps/server/src/modules/tldraw/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export interface TldrawConfig {
REDIS_URI: string;
TLDRAW_ASSETS_ENABLED: boolean;
TLDRAW_ASSETS_MAX_SIZE: number;
TLDRAW_ASSETS_ALLOWED_EXTENSIONS_LIST: string;
ASSETS_ALLOWED_MIME_TYPES_LIST: string;
API_HOST: number;
TLDRAW_MAX_DOCUMENT_SIZE: number;
}
Expand All @@ -32,7 +32,7 @@ const tldrawConfig = {
REDIS_URI: Configuration.has('REDIS_URI') ? (Configuration.get('REDIS_URI') as string) : null,
TLDRAW_ASSETS_ENABLED: Configuration.get('TLDRAW__ASSETS_ENABLED') as boolean,
TLDRAW_ASSETS_MAX_SIZE: Configuration.get('TLDRAW__ASSETS_MAX_SIZE') as number,
TLDRAW_ASSETS_ALLOWED_EXTENSIONS_LIST: Configuration.get('TLDRAW__ASSETS_ALLOWED_EXTENSIONS_LIST') as string,
ASSETS_ALLOWED_MIME_TYPES_LIST: Configuration.get('TLDRAW__ASSETS_ALLOWED_MIME_TYPES_LIST') as string,
API_HOST: Configuration.get('API_HOST') as string,
TLDRAW_MAX_DOCUMENT_SIZE: Configuration.get('TLDRAW__MAX_DOCUMENT_SIZE') as number,
};
Expand Down
10 changes: 5 additions & 5 deletions config/default.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,7 @@
"MAX_DOCUMENT_SIZE",
"ASSETS_ENABLED",
"ASSETS_MAX_SIZE",
"ASSETS_ALLOWED_EXTENSIONS_LIST"
"ASSETS_ALLOWED_MIME_TYPES_LIST"
],
"properties": {
"SOCKET_PORT": {
Expand Down Expand Up @@ -1510,10 +1510,10 @@
"type": "integer",
"description": "Maximum asset size in bytes"
},
"ASSETS_ALLOWED_EXTENSIONS_LIST": {
"ASSETS_ALLOWED_MIME_TYPES_LIST": {
"type": "string",
"description": "List with allowed assets extensions, comma separated, empty if all extensions supported by tldraw should be allowed",
"examples": ["png,jpg,jpeg,svg,webp"]
"description": "List with allowed assets MIME types, comma separated, empty if all MIME types supported by tldraw should be allowed",
"examples": ["image/gif,image/jpeg,video/webm"]
}
},
"default": {
Expand All @@ -1524,7 +1524,7 @@
"MAX_DOCUMENT_SIZE": 15000000,
"ASSETS_ENABLED": true,
"ASSETS_MAX_SIZE": 10485760,
"ASSETS_ALLOWED_EXTENSIONS_LIST": ""
"ASSETS_ALLOWED_MIME_TYPES_LIST": "image/png,image/jpeg,image/gif,image/svg+xml"
}
},
"TLDRAW_DB_URL": {
Expand Down
2 changes: 1 addition & 1 deletion config/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"MAX_DOCUMENT_SIZE": 15000000,
"ASSETS_ENABLED": true,
"ASSETS_MAX_SIZE": 25000000,
"ASSETS_ALLOWED_EXTENSIONS_LIST": ""
"ASSETS_ALLOWED_MIME_TYPES_LIST": ""
},
"SCHULCONNEX_CLIENT": {
"API_URL": "http://localhost:8888/v1/",
Expand Down
2 changes: 1 addition & 1 deletion src/services/config/publicAppConfigService.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const exposedVars = [
'FEATURE_TLDRAW_ENABLED',
'TLDRAW__ASSETS_ENABLED',
'TLDRAW__ASSETS_MAX_SIZE',
'TLDRAW__ASSETS_ALLOWED_EXTENSIONS_LIST',
'TLDRAW__ASSETS_ALLOWED_MIME_TYPES_LIST',
];

/**
Expand Down

0 comments on commit 72b00e2

Please sign in to comment.