From 6db25e3481902c2fef5a39cdc3c1c91854138498 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sat, 18 Jun 2016 09:08:08 +0000 Subject: Runner: updated info --- wqflask/runserver.py | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) (limited to 'wqflask/runserver.py') 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 -- cgit v1.2.3