github.com/mmatczuk/gohan@v0.0.0-20170206152520-30e45d9bdb69/etc/heroku.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: ":9443"
    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  # document root of gohan API server
    31  document_root: "embed"
    32  # list of etcd backend servers
    33  #etcd:
    34  #    - "http://127.0.0.1:2379"
    35  # keystone configuraion
    36  keystone:
    37      use_keystone: true
    38      fake: true
    39      auth_url: "http://localhost:9091/v2.0"
    40      user_name: "admin"
    41      tenant_name: "admin"
    42      password: "gohan"
    43  # CORS (Cross-origin resource sharing (CORS)) configuraion for javascript based client
    44  cors: "*"
    45  
    46  webui_config:
    47      # if true, gohan generates webui config.json
    48      enabled: true
    49      address: __HOST__
    50      tls: true
    51  
    52  # allowed levels  "CRITICAL", "ERROR", "WARNING", "NOTICE", "INFO", "DEBUG",
    53  logging:
    54      stderr:
    55          enabled: true
    56          level: DEBUG
    57      file:
    58          enabled: true
    59          level: INFO
    60          filename: ./gohan.log
    61  
    62  extension:
    63    default: gohanscript
    64    use:
    65    - gohanscript
    66    - javascript
    67    - go