github.com/mmatczuk/gohan@v0.0.0-20170206152520-30e45d9bdb69/examples/keystone/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  # schema path
    14  schemas:
    15      - "embed://etc/schema/gohan.json"
    16      - "embed://etc/extensions/gohan_extension.yaml"
    17      - "example_schema.yaml"
    18  
    19  editable_schema: ./example_schema.yaml
    20  
    21  # listen address for gohan
    22  address: ":9091"
    23  tls:
    24      # browsers need to add exception as long as we use self-signed certificates
    25      # so lets leave it disabled for now
    26      enabled: false
    27      key_file: ./key.pem
    28      cert_file: ./cert.pem
    29  
    30  # keystone configuraion
    31  keystone:
    32      use_keystone: true
    33      fake: false
    34      auth_url: "http://localhost:5000/v2.0"
    35      user_name: "gohan"
    36      tenant_name: "service"
    37      password: "gohan"
    38  # CORS (Cross-origin resource sharing (CORS)) configuraion for javascript based client
    39  cors: "*"
    40  
    41  # allowed levels  "CRITICAL", "ERROR", "WARNING", "NOTICE", "INFO", "DEBUG",
    42  logging:
    43      stderr:
    44          enabled: true
    45          level: INFO
    46      file:
    47          enabled: true
    48          level: INFO
    49          filename: ./gohan.log
    50  
    51  ssh:
    52      key_file: ./id_rsa
    53  
    54  
    55  webui_config:
    56      enabled: true
    57      tls: false