github.com/mmatczuk/gohan@v0.0.0-20170206152520-30e45d9bdb69/examples/npm_example/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: "./gohan.db" 13 # maximum connections 14 max_open_conn: 100 15 # please set no_init true in the production env, so that gohan don't initialize table 16 # no_init: true 17 18 schemas: 19 - "embed://etc/schema/gohan.json" 20 - "embed://etc/extensions/gohan_extension.yaml" 21 - "example_schema.yaml" 22 23 editable_schema: ./example_schema.yaml 24 25 # listen address for gohan 26 # address: ":9091" 27 tls: 28 # browsers need to add exception as long as we use self-signed certificates 29 # so lets leave it disabled for now 30 enabled: false 31 key_file: ./keys/key.pem 32 cert_file: ./keys/cert.pem 33 # document root of gohan API server 34 # embedded webui get served if you use "embed" here 35 document_root: "embed" 36 # list of etcd backend servers 37 #etcd: 38 # - "http://127.0.0.1:2379" 39 # keystone configuraion 40 keystone: 41 use_keystone: false 42 fake: true 43 # Keystone admin URL 44 auth_url: "http://localhost:9091/v2.0" 45 user_name: "admin" 46 tenant_name: "admin" 47 password: "gohan" 48 # CORS (Cross-origin resource sharing (CORS)) configuraion for javascript based client 49 # cors: "*" 50 51 # Generate webui config 52 webui_config: 53 # if true, gohan generates webui config.json 54 enabled: true 55 # you need to set keystone auth url for users 56 # auth_url: "http://localhost:9091/v2.0" 57 tls: false 58 # address: "http://__HOST__:9091" 59 # allowed levels "CRITICAL", "ERROR", "WARNING", "NOTICE", "INFO", "DEBUG", 60 logging: 61 stderr: 62 enabled: true 63 level: INFO 64 65 extension: 66 default: gohanscript 67 use: 68 - gohanscript 69 - javascript 70 - go 71 npm_path: .