-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
app-config.yaml
108 lines (103 loc) · 2.4 KB
/
app-config.yaml
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
app:
title: Q&A Dev App
baseUrl: http://localhost:3000
backend:
baseUrl: http://localhost:7007
listen:
port: 7007
database:
# client: better-sqlite3 # Use this if you don't have docker
# connection: ':memory:'
client: pg
connection:
host: localhost
port: 5432
user: postgres
password: postgres
knexConfig:
pool:
min: 15
max: 30
acquireTimeoutMillis: 60000
createTimeoutMillis: 30000
destroyTimeoutMillis: 5000
idleTimeoutMillis: 60000
reapIntervalMillis: 1000
createRetryIntervalMillis: 200
propagateCreateError: false
cache:
store: memory
cors:
origin: http://localhost:3000
methods: [GET, HEAD, PATCH, POST, PUT, DELETE]
credentials: true
csp:
connect-src: ["'self'", 'http:', 'https:']
# Content-Security-Policy directives follow the Helmet format: https://helmetjs.github.io/#reference
# Default Helmet Content-Security-Policy values can be removed by setting the key to false
reading:
allow:
- host: localhost
auth:
environment: development
providers:
guest: {}
permission:
enabled: true
catalog:
orphanStrategy: delete
processingInterval: { minutes: 1 }
rules:
- allow: [ Component, API, Resource, User, Group ]
locations:
- type: file
target: ../../local_dev.yaml
events:
useEventBus: 'never'
qeta:
storage:
type: database
# maxSizeImage: 2500000
# allowedFilesTypes: ['image/png', 'image/jpg', 'image/jpeg', 'image/gif']
allowAnonymous: true
allowMetadataInput: false
#allowGlobalEdits: true
permissions: true
entities:
max: 2
tags:
#allowCreation: false
#allowedTags:
#- test
#- another_tag
max: 3
moderators:
- 'user:development/guest'
entityKinds:
- Component
- Resource
- Group
- System
aiBotName: 'Q&A Bot'
stats:
schedule:
frequency: { minutes: 1 }
initialDelay: { seconds: 30 }
timeout: { minutes: 10 }
scope: global
tagUpdater:
schedule:
frequency: { minutes: 1 }
initialDelay: { seconds: 30 }
timeout: { minutes: 10 }
scope: global
attachmentCleaner:
schedule:
frequency: { minutes: 1 }
initialDelay: { seconds: 30 }
timeout: { minutes: 10 }
scope: global
dayLimit: 1
openai:
apiKey: ${OPENAI_API_KEY}
organization: ${OPENAI_ORGANIZATION}