2023-10-16 13:10:52 +02:00
|
|
|
/**
|
|
|
|
|
* Domain configurations: different parameters depending on which URLs the app is running on.
|
|
|
|
|
*
|
|
|
|
|
* @type DomainConfigMap
|
|
|
|
|
* */
|
2023-09-26 18:03:30 +02:00
|
|
|
export const domainConfigs = {
|
|
|
|
|
"mail.tutanota.com": {
|
|
|
|
|
firstPartyDomain: true,
|
2023-10-18 12:05:21 +02:00
|
|
|
partneredDomainTransitionUrl: "https://app.tuta.com",
|
2023-09-26 18:03:30 +02:00
|
|
|
apiUrl: "https://mail.tutanota.com",
|
|
|
|
|
paymentUrl: "https://pay.tutanota.com/braintree.html",
|
|
|
|
|
webauthnUrl: "https://app.tuta.com/webauthn",
|
|
|
|
|
legacyWebauthnUrl: "https://mail.tutanota.com/webauthn",
|
2023-10-09 17:05:07 +02:00
|
|
|
webauthnMobileUrl: "https://app.tuta.com/webauthnmobile",
|
|
|
|
|
legacyWebauthnMobileUrl: "https://mail.tutanota.com/webauthnmobile",
|
2023-09-26 18:03:30 +02:00
|
|
|
webauthnRpId: "tutanota.com",
|
|
|
|
|
u2fAppId: "https://tutanota.com/u2f-appid.json",
|
|
|
|
|
giftCardBaseUrl: "https://app.tuta.com/giftcard",
|
|
|
|
|
referralBaseUrl: "https://app.tuta.com/signup",
|
2023-10-19 16:17:24 +02:00
|
|
|
websiteBaseUrl: "https://tutanota.com",
|
2023-09-26 18:03:30 +02:00
|
|
|
},
|
|
|
|
|
"test.tutanota.com": {
|
|
|
|
|
firstPartyDomain: true,
|
2023-10-18 12:05:21 +02:00
|
|
|
partneredDomainTransitionUrl: "https://app.test.tuta.com",
|
2023-09-26 18:03:30 +02:00
|
|
|
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",
|
2023-10-09 17:05:07 +02:00
|
|
|
webauthnMobileUrl: "https://app.test.tuta.com/webauthnmobile",
|
|
|
|
|
legacyWebauthnMobileUrl: "https://test.tutanota.com/webauthnmobile",
|
2023-09-26 18:03:30 +02:00
|
|
|
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",
|
2023-10-19 16:17:24 +02:00
|
|
|
websiteBaseUrl: "https://tutanota.com",
|
2023-09-26 18:03:30 +02:00
|
|
|
},
|
2023-10-19 16:17:24 +02:00
|
|
|
"app.local.tutanota.com": {
|
2023-09-26 18:03:30 +02:00
|
|
|
firstPartyDomain: true,
|
2023-10-18 12:05:21 +02:00
|
|
|
partneredDomainTransitionUrl: "https://app.local.tuta.com:9000",
|
2023-10-20 17:43:42 +02:00
|
|
|
apiUrl: "https://app.local.tutanota.com:9000",
|
2023-09-26 18:03:30 +02:00
|
|
|
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",
|
2023-10-09 17:05:07 +02:00
|
|
|
webauthnMobileUrl: "https://app.local.tuta.com:9000/client/build/webauthnmobile",
|
|
|
|
|
legacyWebauthnMobileUrl: "https://local.tutanota.com:9000/client/build/webauthnmobile",
|
2023-09-26 18:03:30 +02:00
|
|
|
webauthnRpId: "tutanota.com",
|
|
|
|
|
u2fAppId: "https://local.tutanota.com/u2f-appid.json",
|
2023-10-19 16:17:24 +02:00
|
|
|
giftCardBaseUrl: "https://app.local.tuta.com:9000/giftcard",
|
|
|
|
|
referralBaseUrl: "https://app.local.tuta.com:9000/signup",
|
|
|
|
|
websiteBaseUrl: "https://local.tutanota.com:9000",
|
2023-09-26 18:03:30 +02:00
|
|
|
},
|
|
|
|
|
"app.tuta.com": {
|
|
|
|
|
firstPartyDomain: true,
|
2023-10-18 12:05:21 +02:00
|
|
|
partneredDomainTransitionUrl: "https://mail.tutanota.com",
|
2023-09-26 18:03:30 +02:00
|
|
|
apiUrl: "https://app.tuta.com",
|
|
|
|
|
paymentUrl: "https://pay.tutanota.com/braintree.html",
|
|
|
|
|
webauthnUrl: "https://app.tuta.com/webauthn",
|
|
|
|
|
legacyWebauthnUrl: "https://mail.tutanota.com/webauthn",
|
2023-10-09 17:05:07 +02:00
|
|
|
webauthnMobileUrl: "https://app.tuta.com/webauthnmobile",
|
|
|
|
|
legacyWebauthnMobileUrl: "https://mail.tutanota.com/webauthnmobile",
|
2023-09-26 18:03:30 +02:00
|
|
|
webauthnRpId: "tuta.com",
|
|
|
|
|
u2fAppId: "https://app.tuta.com/u2f-appid.json",
|
|
|
|
|
giftCardBaseUrl: "https://app.tuta.com/giftcard",
|
|
|
|
|
referralBaseUrl: "https://app.tuta.com/signup",
|
2023-10-19 16:17:24 +02:00
|
|
|
websiteBaseUrl: "https://tuta.com",
|
2023-09-26 18:03:30 +02:00
|
|
|
},
|
|
|
|
|
"app.test.tuta.com": {
|
|
|
|
|
firstPartyDomain: true,
|
2023-10-18 12:05:21 +02:00
|
|
|
partneredDomainTransitionUrl: "https://test.tutanota.com",
|
2023-09-26 18:03:30 +02:00
|
|
|
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",
|
2023-10-09 17:05:07 +02:00
|
|
|
webauthnMobileUrl: "https://app.test.tuta.com/webauthnmobile",
|
|
|
|
|
legacyWebauthnMobileUrl: "https://test.tutanota.com/webauthnmobile",
|
2023-09-26 18:03:30 +02:00
|
|
|
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",
|
2024-08-05 16:39:36 +02:00
|
|
|
websiteBaseUrl: "https://test.tuta.com",
|
2023-09-26 18:03:30 +02:00
|
|
|
},
|
|
|
|
|
"app.local.tuta.com": {
|
|
|
|
|
firstPartyDomain: true,
|
2023-10-18 12:05:21 +02:00
|
|
|
partneredDomainTransitionUrl: "https://app.local.tutanota.com:9000",
|
2023-09-26 18:03:30 +02:00
|
|
|
apiUrl: "https://app.local.tuta.com:9000",
|
2023-10-20 15:47:16 +02:00
|
|
|
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",
|
2023-09-26 18:03:30 +02:00
|
|
|
webauthnRpId: "tuta.com",
|
|
|
|
|
u2fAppId: "https://app.local.tuta.com/u2f-appid.json",
|
2023-10-19 16:17:24 +02:00
|
|
|
giftCardBaseUrl: "https://app.local.tuta.com:9000/giftcard",
|
|
|
|
|
referralBaseUrl: "https://app.local.tuta.com:9000/signup",
|
|
|
|
|
websiteBaseUrl: "https://local.tuta.com:9000",
|
2023-09-26 18:03:30 +02:00
|
|
|
},
|
|
|
|
|
localhost: {
|
|
|
|
|
firstPartyDomain: true,
|
2023-10-18 12:05:21 +02:00
|
|
|
partneredDomainTransitionUrl: "http://localhost:9000",
|
2023-09-26 18:03:30 +02:00
|
|
|
apiUrl: "http://localhost:9000",
|
2023-10-20 15:47:16 +02:00
|
|
|
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",
|
2023-09-26 18:03:30 +02:00
|
|
|
webauthnRpId: "localhost",
|
|
|
|
|
u2fAppId: "http://localhost:9000/u2f-appid.json",
|
2023-10-19 16:17:24 +02:00
|
|
|
giftCardBaseUrl: "http://localhost:9000/giftcard",
|
|
|
|
|
referralBaseUrl: "http://localhost:9000/signup",
|
|
|
|
|
websiteBaseUrl: "https://tuta.com",
|
2023-09-26 18:03:30 +02:00
|
|
|
},
|
|
|
|
|
"{hostname}": {
|
|
|
|
|
firstPartyDomain: false,
|
2023-10-19 16:17:24 +02:00
|
|
|
partneredDomainTransitionUrl: "{protocol}//{hostname}",
|
|
|
|
|
apiUrl: "{protocol}//{hostname}",
|
2023-10-27 11:27:04 +02:00
|
|
|
paymentUrl: "https://pay.tutanota.com/braintree.html",
|
2023-10-19 16:17:24 +02:00
|
|
|
webauthnUrl: "{protocol}//{hostname}/webauthn",
|
|
|
|
|
legacyWebauthnUrl: "{protocol}//{hostname}/webauthn",
|
|
|
|
|
webauthnMobileUrl: "{protocol}//{hostname}/webauthnmobile",
|
|
|
|
|
legacyWebauthnMobileUrl: "{protocol}//{hostname}/webauthnmobile",
|
2023-09-26 18:03:30 +02:00
|
|
|
webauthnRpId: "{hostname}",
|
2023-10-19 16:17:24 +02:00
|
|
|
u2fAppId: "{protocol}//{hostname}/u2f-appid.json",
|
2023-10-27 11:27:04 +02:00
|
|
|
giftCardBaseUrl: "https://app.tuta.com/giftcard",
|
|
|
|
|
referralBaseUrl: "https://app.tuta.com/signup",
|
|
|
|
|
websiteBaseUrl: "https://tuta.com",
|
2023-09-26 18:03:30 +02:00
|
|
|
},
|
|
|
|
|
}
|