github.com/mmatczuk/gohan@v0.0.0-20170206152520-30e45d9bdb69/examples/policy/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 drop_on_create: true 14 # schema path 15 schemas: 16 - "embed://etc/schema/gohan.json" 17 - "embed://etc/extensions/gohan_extension.yaml" 18 - "example_schema.yaml" 19 20 editable_schema: ./example_schema.yaml 21 22 # listen address for gohan 23 address: ":9091" 24 tls: 25 # browsers need to add exception as long as we use self-signed certificates 26 # so lets leave it disabled for now 27 enabled: false 28 key_file: ./key.pem 29 cert_file: ./cert.pem 30 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 ssh: 53 key_file: ./id_rsa 54 55 webui_config: 56 enabled: true 57 tls: false