mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Add logging options
This commit is contained in:
parent
aa1ffe5b9b
commit
76b1b8c3b4
3 changed files with 66 additions and 1 deletions
|
|
@ -34,6 +34,20 @@ export interface ConfigType {
|
|||
activitypub: {
|
||||
use_tombstones: boolean;
|
||||
};
|
||||
|
||||
filters: {
|
||||
note_filters: string[];
|
||||
username_filters: string[];
|
||||
displayname_filters: string[];
|
||||
bio_filters: string[];
|
||||
emoji_filters: string[];
|
||||
};
|
||||
|
||||
logging: {
|
||||
log_requests: boolean;
|
||||
log_requests_verbose: boolean;
|
||||
log_filters: boolean;
|
||||
};
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
|
|
@ -115,6 +129,18 @@ export const configDefaults: ConfigType = {
|
|||
activitypub: {
|
||||
use_tombstones: true,
|
||||
},
|
||||
filters: {
|
||||
note_filters: [],
|
||||
username_filters: [],
|
||||
displayname_filters: [],
|
||||
bio_filters: [],
|
||||
emoji_filters: [],
|
||||
},
|
||||
logging: {
|
||||
log_requests: false,
|
||||
log_requests_verbose: false,
|
||||
log_filters: true,
|
||||
},
|
||||
};
|
||||
|
||||
export const getConfig = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue