Optionally enable websocket compression
This commit is contained in:
parent
c6cabb8c75
commit
2b919c4eb0
3 changed files with 14 additions and 0 deletions
|
|
@ -136,6 +136,8 @@ type Source = {
|
|||
preSave?: boolean;
|
||||
maxAge?: number;
|
||||
};
|
||||
|
||||
websocketCompression?: boolean;
|
||||
};
|
||||
|
||||
export type Config = {
|
||||
|
|
@ -252,6 +254,8 @@ export type Config = {
|
|||
preSave: boolean;
|
||||
maxAge: number;
|
||||
};
|
||||
|
||||
websocketCompression?: boolean;
|
||||
};
|
||||
|
||||
export type FulltextSearchProvider = 'sqlLike' | 'sqlPgroonga' | 'meilisearch' | 'sqlTsvector';
|
||||
|
|
@ -400,6 +404,7 @@ export function loadConfig(): Config {
|
|||
preSave: config.activityLogging?.preSave ?? false,
|
||||
maxAge: config.activityLogging?.maxAge ?? (1000 * 60 * 60 * 24 * 30),
|
||||
},
|
||||
websocketCompression: config.websocketCompression,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue