-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.example.js
98 lines (97 loc) · 1.7 KB
/
config.example.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
/* eslint-disable import/no-anonymous-default-export */
export default () => ({
matrix: {
homeserver_base_url: 'https://matrix.org',
user_id: '@username:matrix.org',
access_token: 'syt_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
root_context_space_id: '!xxxxxxxxxxxxxxxxxx:matrix.org'
},
fetch: {
depth: 500,
max: 10000,
interval: 60,
autoFetch: true,
dump: false,
initalyLoad: true,
noLog: true
},
interfaces: {
rest_v1: true,
rest_v2: true,
graphql: true,
graphql_playground: true,
post: true,
restrain: false,
dumpContent: false
},
access: {
restrain: {
tokens: ['someKey'],
users: []
}
},
limits: {
restrainTimeout: 2880,
ratelimit: {
short: {
limit: 30,
ttl: 1000
},
medium: {
limit: 80,
ttl: 10000
},
long: {
limit: 500,
ttl: 60000
}
},
caching: {
content: {
ttl: 60000
}
}
},
application: {
name: 'medienhaus',
api_name: 'medienhaus-api',
standards: [
{
name: 'dev.medienhaus.meta',
version: '1.1'
},
{
name: 'dev.medienhaus.allocation',
version: '0.1'
},
{
name: 'dev.medienhaus.order',
version: '0.1'
}
]
},
attributable: {
spaceTypes: {
item: [
'item',
'studentproject',
'project',
'event'
],
context: [
'context',
'class',
'faculty',
'centre'
],
content: [
'lang',
'headline',
'text',
'ul',
'ol',
'quote'
]
}
}
})