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