Skip to content

Commit

Permalink
Merge pull request #117 from cloudwan/gen_webui_config
Browse files Browse the repository at this point in the history
Support config.json generation
  • Loading branch information
nati committed Mar 29, 2016
2 parents e0206e5 + 3abdbc8 commit fdf6082
Show file tree
Hide file tree
Showing 6 changed files with 554 additions and 551 deletions.
14 changes: 11 additions & 3 deletions etc/gohan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ schemas:
editable_schema: ./example_schema.yaml

# listen address for gohan
address: ":443"
address: ":9091"
tls:
# browsers need to add exception as long as we use self-signed certificates
# so lets leave it disabled for now
enabled: true
enabled: false
key_file: ./keys/key.pem
cert_file: ./keys/cert.pem
# document root of gohan API server
Expand All @@ -37,13 +37,21 @@ document_root: "embed"
keystone:
use_keystone: true
fake: true
auth_url: "https://localhost:9091/v2.0"
# Keystone admin URL
auth_url: "http://localhost:9091/v2.0"
user_name: "admin"
tenant_name: "admin"
password: "gohan"
# CORS (Cross-origin resource sharing (CORS)) configuraion for javascript based client
cors: "*"

# Generate webui config
webui_config:
# if true, gohan generates webui config.json
enabled: true
# you need to set keystone auth url for users
# auth_url: "http://localhost:9091/v2.0"

# allowed levels "CRITICAL", "ERROR", "WARNING", "NOTICE", "INFO", "DEBUG",
logging:
stderr:
Expand Down
4 changes: 4 additions & 0 deletions etc/heroku.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ keystone:
# CORS (Cross-origin resource sharing (CORS)) configuraion for javascript based client
cors: "*"

webui_config:
# if true, gohan generates webui config.json
enabled: true

# allowed levels "CRITICAL", "ERROR", "WARNING", "NOTICE", "INFO", "DEBUG",
logging:
stderr:
Expand Down
Loading

0 comments on commit fdf6082

Please sign in to comment.