github.com/mmatczuk/gohan@v0.0.0-20170206152520-30e45d9bdb69/examples/go_extension/gohan.yaml (about) 1 ####################################################### 2 # Gohan API Server example configuraion 3 ###################################################### 4 5 # database connection configuraion 6 database: 7 # yaml, json, sqlite3 and mysql supported 8 # yaml and json db is for schema development purpose 9 type: "sqlite3" 10 # connection string 11 # it is file path for yaml, json and sqlite3 backend 12 connection: "./example.db" 13 # schema path 14 schemas: 15 - "embed://etc/schema/gohan.json" 16 - "embed://etc/extensions/gohan_extension.yaml" 17 - "./example.yaml" 18 19 # listen address for gohan 20 address: ":9091" 21 tls: 22 # browsers need to add exception as long as we use self-signed certificates 23 # so lets leave it disabled for now 24 enabled: false 25 key_file: ./key.pem 26 cert_file: ./cert.pem 27 28 # list of etcd backend servers 29 etcd: 30 - "http://127.0.0.1:2379" 31 # keystone configuraion 32 keystone: 33 use_keystone: true 34 fake: true 35 auth_url: "http://localhost:9091/v2.0" 36 user_name: "admin" 37 tenant_name: "admin" 38 password: "gohan" 39 # CORS (Cross-origin resource sharing (CORS)) configuraion for javascript based client 40 cors: "*" 41 42 # allowed levels "CRITICAL", "ERROR", "WARNING", "NOTICE", "INFO", "DEBUG", 43 logging: 44 stderr: 45 enabled: true 46 level: INFO 47 file: 48 enabled: true 49 level: INFO 50 filename: ./gohan.log 51 52 webui_config: 53 enabled: true 54 tls: false