-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathConfiguration.ts
74 lines (69 loc) · 1.65 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/* eslint-disable @typescript-eslint/no-duplicate-enum-values -- allow duplicates in enums within this file e.g. for GU_API_DOMAIN */
import type { RateLimiterConfiguration } from '@/server/lib/rate-limit';
import { Stage } from '@/shared/model/Configuration';
export interface Configuration {
port: number;
idapiClientAccessToken: string;
idapiBaseUrl: string;
signInPageUrl: string;
baseUri: string;
defaultReturnUri: string;
stage: Stage;
googleRecaptcha: {
siteKey: string;
secretKey: string;
};
guardianDotcomDomain: string;
apiDomain: string;
isHttps: boolean;
appSecret: string;
encryptionSecretKey: string;
oauthBaseUrl: string;
okta: Okta;
githubRunNumber: string;
sentryDsn: string;
redis: RedisConfiguration;
accountManagementUrl: string;
rateLimiter: RateLimiterConfiguration;
membersDataApiUrl: string;
passcodesEnabled: boolean;
deleteAccountStepFunction: {
url: string;
apiKey: string;
};
}
export interface Okta {
enabled: boolean;
orgUrl: string;
token: string;
authServerId: string;
clientId: string;
clientSecret: string;
groupIds: {
GuardianUserAll: string;
};
social: {
apple: string;
google: string;
};
}
export enum GU_DOMAIN {
DEV = 'thegulocal.com',
CODE = 'code.dev-theguardian.com',
PROD = 'theguardian.com',
}
export enum GU_API_DOMAIN {
DEV = 'code.dev-guardianapis.com',
CODE = 'code.dev-guardianapis.com',
PROD = 'guardianapis.com',
}
export enum GU_MANAGE_URL {
DEV = 'https://manage.code.dev-theguardian.com',
CODE = 'https://manage.code.dev-theguardian.com',
PROD = 'https://manage.theguardian.com',
}
export interface RedisConfiguration {
password: string;
host: string;
sslOn: boolean;
}