From caace678b067942fb112cc890fa3cf279795c120 Mon Sep 17 00:00:00 2001 From: Felix Baumann <felixb@fsmpi.rwth-aachen.de> Date: Fri, 14 Oct 2016 23:43:42 +0200 Subject: [PATCH] Konfigurierbarkeit der IP-Adresse, auf der gelauscht wird --- config.py.example | 1 + run.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.py.example b/config.py.example index 672e83b..0cc9d4e 100644 --- a/config.py.example +++ b/config.py.example @@ -1,5 +1,6 @@ # Defaults for development ,do not use in production! DEBUG = False +SERVER_IP = 'localhost' VIDEOPREFIX = 'https://videoag.fsmpi.rwth-aachen.de' VIDEOMOUNT = [{'mountpoint': 'files/protected/', 'prefix':'protected/'},{'mountpoint':'files/pub/','prefix':'pub/' }, {'mountpoint':'files/vpnonline/','prefix':'vpnonline/' }] #SECRET_KEY = 'something random' diff --git a/run.py b/run.py index 6c64338..0a55ced 100755 --- a/run.py +++ b/run.py @@ -2,4 +2,4 @@ from server import * if __name__ == '__main__': - app.run(threaded=True) + app.run(threaded=True, host=config['SERVER_IP']) -- GitLab