Skip to content

Commit

Permalink
Merge branch 'master' into cluster-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkukral authored Nov 11, 2017
2 parents 3e9491a + 9615a78 commit 1f1421c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions kqueen/blueprints/api/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ def get_auth_headers(self):
data=json.dumps(data),
content_type='application/json')

print(config)

return {'Authorization': '{header_prefix} {token}'.format(
header_prefix=config.get('JWT_AUTH_HEADER_PREFIX'),
token=response.json['access_token'],
Expand Down
3 changes: 3 additions & 0 deletions kqueen/config/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ class BaseConfig:
DEBUG = False
LOG_LEVEL = 'WARNING'

KQUEEN_HOST = '127.0.0.1'
KQUEEN_PORT = 5000

# etcd settings
# ETCD_HOST
# ETCD_PORT
Expand Down
3 changes: 2 additions & 1 deletion kqueen/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ def create_app(config_file=None):

def run():
logger.debug('kqueen starting')
app.run()
app.run(host=app.config.get('KQUEEN_HOST', '127.0.0.1'),
port=int(app.config.get('KQUEEN_PORT', 5000)))

0 comments on commit 1f1421c

Please sign in to comment.