-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
52 lines (48 loc) · 1.3 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
45
46
47
48
49
50
51
52
{
"debug": true,
"host": "0.0.0.0",
"port": 8080,
"root_user": { "password": "admin" },
"applications": [
"example"
],
"databases": [{
"db": {
"storage": "postgresql",
"type": "postgres",
"dsn": {
"scheme": "postgres",
"dbname": "postgres",
"user": "postgres",
"host": "db",
"password": "postgres",
"port": 5432
},
"options": {
"read_only": false
}
}
}],
"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"
}
}