forked from solidcouch/solidcouch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ts
87 lines (79 loc) · 2.57 KB
/
index.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
75
76
77
78
79
80
81
82
83
84
85
86
87
export * from './leaflet'
export const communityId =
process.env.REACT_APP_COMMUNITY ||
'https://solidweb.me/dev-sleepy-bike/community#us'
/**
* Name of folder in which to store person's data of this community
*
* During setup, the container with this community's data will be, by default, created at {storage}/hospex/{communityContainer}/
* Otherwise this doesn't matter
* Don't include trailing slash!
*/
export const communityContainer =
process.env.REACT_APP_COMMUNITY_CONTAINER || 'dev-sleepy-bike'
/**
* Service for email notifications
* Should work along the lines of https://github.com/openHospitalityNetwork/solid-email-notifications
*/
export const emailNotificationsService =
process.env.REACT_APP_EMAIL_NOTIFICATIONS_SERVICE ?? ''
// TODO maybe we'll fetch the identity directly from the mailer, when it supports that option, so the setup will be less complicated
export const emailNotificationsIdentity =
process.env.REACT_APP_EMAIL_NOTIFICATIONS_IDENTITY ?? ''
export const emailNotificationsType: 'simple' | 'solid' =
(process.env.REACT_APP_EMAIL_NOTIFICATIONS_TYPE as
| 'simple'
| 'solid'
| undefined) ?? 'simple'
if (emailNotificationsService && !emailNotificationsIdentity)
throw new Error(
'Please provide webId of email notifications service in environment variable REACT_APP_EMAIL_NOTIFICATIONS_IDENTITY',
)
export const wikidataLDF = 'https://query.wikidata.org/bigdata/ldf'
export type IssuerConfig = {
recommended?: boolean // the recommended provider for sign up
featured?: boolean // featured providers for sign in
issuer: string
registration?: string
server: 'NSS' | 'CSS'
}
export const oidcIssuers: IssuerConfig[] = [
{
recommended: true,
featured: true,
issuer: 'https://solidcommunity.net',
registration: 'https://solidcommunity.net/register',
server: 'NSS',
},
{
featured: true,
issuer: 'https://solidweb.me/',
server: 'CSS',
},
{
issuer: 'https://solid.redpencil.io/',
registration: 'https://solid.redpencil.io/idp/register/',
server: 'CSS',
},
{
issuer: 'https://teamid.live/',
registration: 'https://teamid.live/.account/login/password/register/',
server: 'CSS',
},
{
issuer: 'https://solidweb.org',
registration: 'https://solidweb.org/register',
server: 'NSS',
},
{
issuer: 'https://datapod.igrant.io',
registration: 'https://datapod.igrant.io/register',
server: 'NSS',
},
{
issuer: 'https://inrupt.net',
registration: 'https://inrupt.net/register',
server: 'NSS',
},
]
export const oidcIssuerRegistrations = []