Skip to content

Commit

Permalink
Allow configuration of listening interface
Browse files Browse the repository at this point in the history
  • Loading branch information
williamjacksn committed Dec 7, 2018
1 parent afa5d58 commit b455717
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion excalibur/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def webserver(*args, **kwargs):
initialize_database()

app = create_app(conf)
app.run(use_reloader=False)
app.run(host=conf.get('webserver', 'web_server_host'), use_reloader=False)


@cli.command('worker')
Expand Down
5 changes: 5 additions & 0 deletions excalibur/config_templates/default_excalibur.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ sql_alchemy_conn = sqlite:///{EXCALIBUR_HOME}/excalibur.db
logging_level = INFO

[webserver]
# The host interface on which to listen.
# 127.0.0.1 means the web server will only respond to requests from the local machine.
# Set to 0.0.0.0 to listen on all interfaces.
web_server_host = 127.0.0.1

# The port on which to run the web server.
web_server_port = 5000

Expand Down

0 comments on commit b455717

Please sign in to comment.