diff options
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/runserver.py | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/wqflask/runserver.py b/wqflask/runserver.py index 344826ce..0d91c57a 100644 --- a/wqflask/runserver.py +++ b/wqflask/runserver.py @@ -1,24 +1,11 @@ -from wqflask import app - -# Start the webserver with ./bin/genenetwork2 -# -# Please note, running with host set externally below combined with debug mode -# is a big security no-no -# Unless you have a firewall setup +# Starts the webserver with the ./bin/genenetwork2 command # -# Something like /sbin/iptables -A INPUT -p tcp -i eth0 -s ! 71.236.239.43 --dport 5000 -j DROP -# should do the trick +# Please note, running with host set externally below combined with +# debug mode is a security risk unless you have a firewall setup, e.g. # -# You'll probably have to firewall the main port and the -# -# For more info see: http://www.cyberciti.biz/faq/iptables-block-port/ +# /sbin/iptables -A INPUT -p tcp -i eth0 -s ! 71.236.239.43 --dport 5003 -j DROP -#import logging -#logging.basicConfig(filename="/tmp/flask_gn_log", level=logging.INFO) -# -#_log = logging.getLogger("search") -#_ch = logging.StreamHandler() -#_log.addHandler(_ch) +from wqflask import app import logging import utility.logger |