2022-09-20 03:50:48 +00:00
|
|
|
/**
|
|
|
|
* Configuration options set up by the user
|
2019-02-07 12:02:33 +00:00
|
|
|
*/
|
|
|
|
export type Source = {
|
|
|
|
repository_url?: string;
|
|
|
|
feedback_url?: string;
|
|
|
|
url: string;
|
|
|
|
port: number;
|
|
|
|
disableHsts?: boolean;
|
2019-04-07 12:50:36 +00:00
|
|
|
db: {
|
2019-02-07 12:02:33 +00:00
|
|
|
host: string;
|
|
|
|
port: number;
|
|
|
|
db: string;
|
|
|
|
user: string;
|
|
|
|
pass: string;
|
2019-06-11 11:49:08 +00:00
|
|
|
disableCache?: boolean;
|
2019-05-23 18:26:56 +00:00
|
|
|
extra?: { [x: string]: string };
|
2019-02-07 12:02:33 +00:00
|
|
|
};
|
|
|
|
redis: {
|
|
|
|
host: string;
|
|
|
|
port: number;
|
2022-09-30 15:05:34 +00:00
|
|
|
family?: number | 'dual' | 'ipv4' | 'ipv6';
|
2019-02-07 12:02:33 +00:00
|
|
|
pass: string;
|
2019-03-09 14:44:54 +00:00
|
|
|
db?: number;
|
|
|
|
prefix?: string;
|
2019-02-07 12:02:33 +00:00
|
|
|
};
|
2022-10-16 21:46:11 +00:00
|
|
|
elasticsearch?: {
|
2019-02-07 12:02:33 +00:00
|
|
|
host: string;
|
|
|
|
port: number;
|
2019-10-20 15:41:12 +00:00
|
|
|
ssl?: boolean;
|
2020-03-20 05:00:34 +00:00
|
|
|
user?: string;
|
|
|
|
pass?: string;
|
|
|
|
index?: string;
|
2019-02-07 12:02:33 +00:00
|
|
|
};
|
2018-07-23 16:58:11 +00:00
|
|
|
|
2019-02-07 12:02:33 +00:00
|
|
|
proxy?: string;
|
2019-09-01 19:42:52 +00:00
|
|
|
proxySmtp?: string;
|
2020-04-12 11:32:34 +00:00
|
|
|
proxyBypassHosts?: string[];
|
2019-02-07 12:02:33 +00:00
|
|
|
|
2021-09-03 12:00:44 +00:00
|
|
|
allowedPrivateNetworks?: string[];
|
|
|
|
|
2021-09-04 11:33:14 +00:00
|
|
|
maxFileSize?: number;
|
|
|
|
|
2022-10-18 17:33:00 +00:00
|
|
|
maxNoteTextLength?: number;
|
|
|
|
|
2019-02-07 12:02:33 +00:00
|
|
|
accesslog?: string;
|
|
|
|
|
2022-11-25 11:56:49 +00:00
|
|
|
clusterLimits?: {
|
|
|
|
web?: number;
|
|
|
|
queue?: number;
|
|
|
|
};
|
2019-04-07 12:50:36 +00:00
|
|
|
|
|
|
|
id: string;
|
2019-05-07 08:49:25 +00:00
|
|
|
|
2019-08-26 20:33:24 +00:00
|
|
|
deliverJobConcurrency?: number;
|
|
|
|
inboxJobConcurrency?: number;
|
2020-01-20 05:14:09 +00:00
|
|
|
deliverJobPerSec?: number;
|
|
|
|
inboxJobPerSec?: number;
|
|
|
|
deliverJobMaxAttempts?: number;
|
|
|
|
inboxJobMaxAttempts?: number;
|
2019-08-29 23:29:46 +00:00
|
|
|
|
2022-12-07 19:56:11 +00:00
|
|
|
syslog?: {
|
2019-08-29 23:29:46 +00:00
|
|
|
host: string;
|
|
|
|
port: number;
|
|
|
|
};
|
2019-12-19 16:54:28 +00:00
|
|
|
|
|
|
|
mediaProxy?: string;
|
2022-02-27 04:59:10 +00:00
|
|
|
proxyRemoteFiles?: boolean;
|
2022-08-12 18:29:16 +00:00
|
|
|
internalStoragePath?: string;
|
2022-12-12 18:10:34 +00:00
|
|
|
|
|
|
|
images?: {
|
|
|
|
info?: string;
|
|
|
|
notFound?: string;
|
|
|
|
error?: string;
|
|
|
|
};
|
2019-02-07 12:02:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2022-09-11 04:20:43 +00:00
|
|
|
* Information that FoundKey automatically sets (by inference from information set by the user)
|
2019-02-07 12:02:33 +00:00
|
|
|
*/
|
|
|
|
export type Mixin = {
|
2019-11-01 13:34:26 +00:00
|
|
|
version: string;
|
2019-02-07 12:02:33 +00:00
|
|
|
host: string;
|
|
|
|
hostname: string;
|
|
|
|
scheme: string;
|
2019-02-24 03:53:22 +00:00
|
|
|
wsScheme: string;
|
|
|
|
apiUrl: string;
|
|
|
|
wsUrl: string;
|
|
|
|
authUrl: string;
|
|
|
|
driveUrl: string;
|
|
|
|
userAgent: string;
|
2022-05-01 13:51:07 +00:00
|
|
|
clientEntry: string;
|
2019-02-07 12:02:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export type Config = Source & Mixin;
|