-
Notifications
You must be signed in to change notification settings - Fork 546
/
Copy pathDomainConfigs.js
127 lines (127 loc) · 5.68 KB
/
DomainConfigs.js
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/**
* Domain configurations: different parameters depending on which URLs the app is running on.
*
* @type DomainConfigMap
* */
export const domainConfigs = {
"mail.tutanota.com": {
firstPartyDomain: true,
partneredDomainTransitionUrl: "https://app.tuta.com",
apiUrl: "https://mail.tutanota.com",
paymentUrl: "https://pay.tutanota.com/braintree.html",
webauthnUrl: "https://app.tuta.com/webauthn",
legacyWebauthnUrl: "https://mail.tutanota.com/webauthn",
webauthnMobileUrl: "https://app.tuta.com/webauthnmobile",
legacyWebauthnMobileUrl: "https://mail.tutanota.com/webauthnmobile",
webauthnRpId: "tutanota.com",
u2fAppId: "https://tutanota.com/u2f-appid.json",
giftCardBaseUrl: "https://app.tuta.com/giftcard",
referralBaseUrl: "https://app.tuta.com/signup",
websiteBaseUrl: "https://tutanota.com",
},
"test.tutanota.com": {
firstPartyDomain: true,
partneredDomainTransitionUrl: "https://app.test.tuta.com",
apiUrl: "https://test.tutanota.com",
paymentUrl: "https://pay.test.tutanota.com/braintree.html",
webauthnUrl: "https://app.test.tuta.com/webauthn",
legacyWebauthnUrl: "https://test.tutanota.com/webauthn",
webauthnMobileUrl: "https://app.test.tuta.com/webauthnmobile",
legacyWebauthnMobileUrl: "https://test.tutanota.com/webauthnmobile",
webauthnRpId: "tutanota.com",
u2fAppId: "https://test.tutanota.com/u2f-appid.json",
giftCardBaseUrl: "https://app.test.tuta.com/giftcard",
referralBaseUrl: "https://app.test.tuta.com/signup",
websiteBaseUrl: "https://tutanota.com",
},
"app.local.tutanota.com": {
firstPartyDomain: true,
partneredDomainTransitionUrl: "https://app.local.tuta.com:9000",
apiUrl: "https://app.local.tutanota.com:9000",
paymentUrl: "https://local.tutanota.com:9000/client/build/braintree.html",
webauthnUrl: "https://app.local.tuta.com:9000/client/build/webauthn",
legacyWebauthnUrl: "https://local.tutanota.com:9000/client/build/webauthn",
webauthnMobileUrl: "https://app.local.tuta.com:9000/client/build/webauthnmobile",
legacyWebauthnMobileUrl: "https://local.tutanota.com:9000/client/build/webauthnmobile",
webauthnRpId: "tutanota.com",
u2fAppId: "https://local.tutanota.com/u2f-appid.json",
giftCardBaseUrl: "https://app.local.tuta.com:9000/giftcard",
referralBaseUrl: "https://app.local.tuta.com:9000/signup",
websiteBaseUrl: "https://local.tutanota.com:9000",
},
"app.tuta.com": {
firstPartyDomain: true,
partneredDomainTransitionUrl: "https://mail.tutanota.com",
apiUrl: "https://app.tuta.com",
paymentUrl: "https://pay.tutanota.com/braintree.html",
webauthnUrl: "https://app.tuta.com/webauthn",
legacyWebauthnUrl: "https://mail.tutanota.com/webauthn",
webauthnMobileUrl: "https://app.tuta.com/webauthnmobile",
legacyWebauthnMobileUrl: "https://mail.tutanota.com/webauthnmobile",
webauthnRpId: "tuta.com",
u2fAppId: "https://app.tuta.com/u2f-appid.json",
giftCardBaseUrl: "https://app.tuta.com/giftcard",
referralBaseUrl: "https://app.tuta.com/signup",
websiteBaseUrl: "https://tuta.com",
},
"app.test.tuta.com": {
firstPartyDomain: true,
partneredDomainTransitionUrl: "https://test.tutanota.com",
apiUrl: "https://app.test.tuta.com",
paymentUrl: "https://pay.test.tutanota.com/braintree.html",
webauthnUrl: "https://app.test.tuta.com/webauthn",
legacyWebauthnUrl: "https://test.tutanota.com/webauthn",
webauthnMobileUrl: "https://app.test.tuta.com/webauthnmobile",
legacyWebauthnMobileUrl: "https://test.tutanota.com/webauthnmobile",
webauthnRpId: "tuta.com",
u2fAppId: "https://app.test.tuta.com/u2f-appid.json",
giftCardBaseUrl: "https://app.test.tuta.com/giftcard",
referralBaseUrl: "https://app.test.tuta.com/signup",
websiteBaseUrl: "https://test.tuta.com",
},
"app.local.tuta.com": {
firstPartyDomain: true,
partneredDomainTransitionUrl: "https://app.local.tutanota.com:9000",
apiUrl: "https://app.local.tuta.com:9000",
paymentUrl: "https://app.local.tuta.com:9000/braintree.html",
webauthnUrl: "https://app.local.tuta.com:9000/webauthn",
legacyWebauthnUrl: "https://local.tutanota.com:9000/webauthn",
webauthnMobileUrl: "https://app.local.tuta.com:9000/webauthnmobile",
legacyWebauthnMobileUrl: "https://local.tutanota.com:9000/webauthnmobile",
webauthnRpId: "tuta.com",
u2fAppId: "https://app.local.tuta.com/u2f-appid.json",
giftCardBaseUrl: "https://app.local.tuta.com:9000/giftcard",
referralBaseUrl: "https://app.local.tuta.com:9000/signup",
websiteBaseUrl: "https://local.tuta.com:9000",
},
localhost: {
firstPartyDomain: true,
partneredDomainTransitionUrl: "http://localhost:9000",
apiUrl: "http://localhost:9000",
paymentUrl: "http://localhost:9000/braintree.html",
webauthnUrl: "http://localhost:9000/webauthn",
legacyWebauthnUrl: "http://localhost:9000/webauthn",
webauthnMobileUrl: "http://localhost:9000/webauthnmobile",
legacyWebauthnMobileUrl: "http://localhost:9000/webauthnmobile",
webauthnRpId: "localhost",
u2fAppId: "http://localhost:9000/u2f-appid.json",
giftCardBaseUrl: "http://localhost:9000/giftcard",
referralBaseUrl: "http://localhost:9000/signup",
websiteBaseUrl: "https://tuta.com",
},
"{hostname}": {
firstPartyDomain: false,
partneredDomainTransitionUrl: "{protocol}//{hostname}",
apiUrl: "{protocol}//{hostname}",
paymentUrl: "https://pay.tutanota.com/braintree.html",
webauthnUrl: "{protocol}//{hostname}/webauthn",
legacyWebauthnUrl: "{protocol}//{hostname}/webauthn",
webauthnMobileUrl: "{protocol}//{hostname}/webauthnmobile",
legacyWebauthnMobileUrl: "{protocol}//{hostname}/webauthnmobile",
webauthnRpId: "{hostname}",
u2fAppId: "{protocol}//{hostname}/u2f-appid.json",
giftCardBaseUrl: "https://app.tuta.com/giftcard",
referralBaseUrl: "https://app.tuta.com/signup",
websiteBaseUrl: "https://tuta.com",
},
}