forked from plone/guillotina_prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
44 lines (44 loc) · 1.04 KB
/
config.json
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
{
"applications": ["guillotina_prometheus"],
"databases": [{
"db": {
"storage": "postgresql",
"dsn": {
"scheme": "postgres",
"dbname": "guillotina",
"user": "postgres",
"host": "localhost",
"password": "",
"port": 5432
},
"read_only": false
}
}],
"host": "127.0.0.1",
"port": 8080,
"root_user": {
"password": "root"
},
"auth_extractors": [
"guillotina.auth.extractors.BearerAuthPolicy",
"guillotina.auth.extractors.BasicAuthPolicy",
"guillotina.auth.extractors.WSTokenAuthPolicy"
],
"auth_user_identifiers": [],
"auth_token_validators": [
"guillotina.auth.validators.SaltedHashPasswordValidator",
"guillotina.auth.validators.JWTValidator"
],
"cors": {
"allow_origin": ["http://localhost:8080"],
"allow_methods": ["GET", "POST", "DELETE", "HEAD", "PATCH", "OPTIONS"],
"allow_headers": ["*"],
"expose_headers": ["*"],
"allow_credentials": true,
"max_age": 3660
},
"jwt": {
"secret": "foobar",
"algorithm": "HS256"
}
}