mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 10:54:18 +00:00
Add NOPAQUE_HOST and NOPAQUE_PORT variables
This commit is contained in:
parent
ab21768311
commit
9e2cc6486c
6
.env.tpl
6
.env.tpl
@ -110,6 +110,12 @@ NOPAQUE_ADMIN_EMAIL_ADRESS=
|
|||||||
# DEFAULT: localhost
|
# DEFAULT: localhost
|
||||||
# NOPAQUE_DOMAIN=
|
# NOPAQUE_DOMAIN=
|
||||||
|
|
||||||
|
# DEFAULT: 0.0.0.0
|
||||||
|
# NOPAQUE_HOST=
|
||||||
|
|
||||||
|
# DEFAULT: 5000
|
||||||
|
# NOPAQUE_PORT=
|
||||||
|
|
||||||
# CHOOSE ONE: http, https
|
# CHOOSE ONE: http, https
|
||||||
# DEFAULT: http
|
# DEFAULT: http
|
||||||
# NOPAQUE_PROTOCOL=
|
# NOPAQUE_PROTOCOL=
|
||||||
|
@ -60,4 +60,6 @@ def test():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
socketio.run(app, host='0.0.0.0')
|
host = os.environ.get('NOPAQUE_HOST', '0.0.0.0')
|
||||||
|
port = int(os.environ.get('NOPAQUE_PORT', '5000'))
|
||||||
|
socketio.run(app, host=host, port=port)
|
||||||
|
Loading…
Reference in New Issue
Block a user