2019-02-07 06:02:33 -06:00
|
|
|
/**
|
|
|
|
* ユーザーが設定する必要のある情報
|
|
|
|
*/
|
|
|
|
export type Source = {
|
|
|
|
repository_url?: string;
|
|
|
|
feedback_url?: string;
|
|
|
|
url: string;
|
|
|
|
port: number;
|
|
|
|
https?: { [x: string]: string };
|
|
|
|
disableHsts?: boolean;
|
2019-04-07 07:50:36 -05:00
|
|
|
db: {
|
2019-02-07 06:02:33 -06:00
|
|
|
host: string;
|
|
|
|
port: number;
|
|
|
|
db: string;
|
|
|
|
user: string;
|
|
|
|
pass: string;
|
2019-06-11 06:49:08 -05:00
|
|
|
disableCache?: boolean;
|
2019-05-23 13:26:56 -05:00
|
|
|
extra?: { [x: string]: string };
|
2019-02-07 06:02:33 -06:00
|
|
|
};
|
|
|
|
redis: {
|
|
|
|
host: string;
|
|
|
|
port: number;
|
|
|
|
pass: string;
|
2019-03-09 08:44:54 -06:00
|
|
|
db?: number;
|
|
|
|
prefix?: string;
|
2019-02-07 06:02:33 -06:00
|
|
|
};
|
|
|
|
elasticsearch: {
|
|
|
|
host: string;
|
|
|
|
port: number;
|
2019-10-20 10:41:12 -05:00
|
|
|
ssl?: boolean;
|
2020-03-20 00:00:34 -05:00
|
|
|
user?: string;
|
|
|
|
pass?: string;
|
|
|
|
index?: string;
|
2019-02-07 06:02:33 -06:00
|
|
|
};
|
2018-07-23 11:58:11 -05:00
|
|
|
|
2019-02-07 06:02:33 -06:00
|
|
|
proxy?: string;
|
2019-09-01 14:42:52 -05:00
|
|
|
proxySmtp?: string;
|
2020-04-12 06:32:34 -05:00
|
|
|
proxyBypassHosts?: string[];
|
2019-02-07 06:02:33 -06:00
|
|
|
|
|
|
|
accesslog?: string;
|
|
|
|
|
|
|
|
clusterLimit?: number;
|
2019-04-07 07:50:36 -05:00
|
|
|
|
|
|
|
id: string;
|
2019-05-07 03:49:25 -05:00
|
|
|
|
|
|
|
outgoingAddressFamily?: 'ipv4' | 'ipv6' | 'dual';
|
2019-08-26 15:33:24 -05:00
|
|
|
|
|
|
|
deliverJobConcurrency?: number;
|
|
|
|
inboxJobConcurrency?: number;
|
2020-01-19 23:14:09 -06:00
|
|
|
deliverJobPerSec?: number;
|
|
|
|
inboxJobPerSec?: number;
|
|
|
|
deliverJobMaxAttempts?: number;
|
|
|
|
inboxJobMaxAttempts?: number;
|
2019-08-29 18:29:46 -05:00
|
|
|
|
|
|
|
syslog: {
|
|
|
|
host: string;
|
|
|
|
port: number;
|
|
|
|
};
|
2019-12-19 10:54:28 -06:00
|
|
|
|
|
|
|
mediaProxy?: string;
|
2020-10-17 11:46:40 -05:00
|
|
|
|
|
|
|
signToActivityPubGet?: boolean;
|
2019-02-07 06:02:33 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Misskeyが自動的に(ユーザーが設定した情報から推論して)設定する情報
|
|
|
|
*/
|
|
|
|
export type Mixin = {
|
2019-11-01 08:34:26 -05:00
|
|
|
version: string;
|
2019-02-07 06:02:33 -06:00
|
|
|
host: string;
|
|
|
|
hostname: string;
|
|
|
|
scheme: string;
|
2019-02-23 21:53:22 -06:00
|
|
|
wsScheme: string;
|
|
|
|
apiUrl: string;
|
|
|
|
wsUrl: string;
|
|
|
|
authUrl: string;
|
|
|
|
driveUrl: string;
|
|
|
|
userAgent: string;
|
2019-02-07 06:02:33 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
export type Config = Source & Mixin;
|