-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.ts
45 lines (38 loc) · 1.09 KB
/
configuration.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import * as yaml from "js-yaml";
import { injectable } from "inversify";
import { log, Configuration } from "@swingletree-oss/harness";
import * as nconf from "nconf";
@injectable()
export class ConfigurationService extends Configuration {
constructor(file = "./swingletree.conf.yaml") {
super(file, /((SCOTTY|LOG)_.*)$/i);
}
}
export namespace ScottyConfig {
export enum Github {
APPID = "scotty:github:app:id",
KEYFILE = "scotty:github:app:keyfile",
BASE = "scotty:github:base",
WEBHOOK_SECRET = "scotty:github:secret",
APP_PUBLIC_PAGE = "scotty:github:app:page",
CLIENT_DEBUG = "scotty:github:debug"
}
export const PROVIDER = "scotty:provider";
export enum Gitea {
BASE = "scotty:gitea:base",
TOKEN = "scotty:gitea:token"
}
export enum Storage {
DATABASE = "scotty:storage:host",
PASSWORD = "scotty:storage:password"
}
export enum Elastic {
ENABLED = "scotty:elastic:enabled",
NODE = "scotty:elastic:node",
AUTH = "scotty:elastic:auth",
INDEX = "scotty:elastic:index"
}
export enum Scotty {
PORT = "scotty:port"
}
}