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