diff options
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | run.py | 4 |
2 files changed, 6 insertions, 1 deletions
@@ -12,6 +12,9 @@ Optionally, rpcconnect (rpc listening address) and rpcport may be defined. Notably, the documented recommended command line for alphad configures it to listen on a nondefault port. +The BCE_ADDR and BCE_PORT environment variables can be used to override the +default http server address and port binding of 127.0.0.1:5000. + # license BSD @@ -1,3 +1,5 @@ +import os + from rpcblockchainexplorer.flaskapp import create_app app = create_app() -app.run(debug=True) +app.run(debug=True, host=os.environ.get('BCE_ADDR','127.0.0.1'), port=int(os.environ.get('BCE_PORT','5000'))) |