-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
46 lines (44 loc) · 1.4 KB
/
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
#######################################################
# Gohan API Server example configuraion
######################################################
# database connection configuraion
database:
# yaml, json, sqlite3 and mysql supported
# yaml and json db is for schema development purpose
type: "sqlite3"
# connection string
# it is file path for yaml, json and sqlite3 backend
connection: "./database.db"
drop_on_create: true
# schema path
schemas:
- "./../../cloudwan/gohan/etc/schema/gohan.json"
- "./../../cloudwan/gohan/etc/extensions/gohan_extension.yaml"
- "./schema.yaml"
#editable_schema: "./schema.yaml"
# listen address for gohan
address: ":9091"
tls:
# browsers need to add exception as long as we use self-signed certificates
# so lets leave it disabled for now
enabled: false
key_file: ./key.pem
cert_file: ./cert.pem
# document root of gohan API server
# Note: only static and schema directoriy will be served
document_root: "."
# keystone configuraion
keystone:
use_keystone: true
fake: true
auth_url: "http://localhost:9091/v2.0"
user_name: "admin"
tenant_name: "admin"
password: "gohan"
# CORS (Cross-origin resource sharing (CORS)) configuraion for javascript based client
cors: "*"
# allowed levels "CRITICAL", "ERROR", "WARNING", "NOTICE", "INFO", "DEBUG",
logging:
stderr:
enabled: true
level: INFO