2019-02-07 12:02:33 +00:00
|
|
|
/**
|
|
|
|
* ユーザーが設定する必要のある情報
|
|
|
|
*/
|
|
|
|
export type Source = {
|
|
|
|
repository_url?: string;
|
|
|
|
feedback_url?: string;
|
|
|
|
url: string;
|
|
|
|
port: number;
|
|
|
|
https?: { [x: string]: string };
|
|
|
|
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;
|
|
|
|
pass: string;
|
2019-03-09 14:44:54 +00:00
|
|
|
db?: number;
|
|
|
|
prefix?: string;
|
2019-02-07 12:02:33 +00:00
|
|
|
};
|
|
|
|
elasticsearch: {
|
|
|
|
host: string;
|
|
|
|
port: number;
|
|
|
|
pass: string;
|
2019-08-09 04:04:35 +00:00
|
|
|
index?: string;
|
2019-10-20 15:41:12 +00:00
|
|
|
ssl?: boolean;
|
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;
|
2019-02-07 12:02:33 +00:00
|
|
|
|
|
|
|
accesslog?: string;
|
|
|
|
|
|
|
|
clusterLimit?: number;
|
2019-04-07 12:50:36 +00:00
|
|
|
|
|
|
|
id: string;
|
2019-05-07 08:49:25 +00:00
|
|
|
|
|
|
|
outgoingAddressFamily?: 'ipv4' | 'ipv6' | 'dual';
|
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
|
|
|
|
|
|
|
syslog: {
|
|
|
|
host: string;
|
|
|
|
port: number;
|
|
|
|
};
|
2019-12-19 16:54:28 +00:00
|
|
|
|
|
|
|
mediaProxy?: string;
|
2019-02-07 12:02:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Misskeyが自動的に(ユーザーが設定した情報から推論して)設定する情報
|
|
|
|
*/
|
|
|
|
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;
|
2019-02-07 12:02:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export type Config = Source & Mixin;
|