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