commit d4adf3e0e177e80ce7bc825f1cb4e461e5551b2f Author: Arturo Filastò art@fuffa.org Date: Sat Nov 10 14:18:00 2012 +0100
Add basic configuration support to oonib --- oonib/config.py | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/oonib/config.py b/oonib/config.py new file mode 100644 index 0000000..7304ef7 --- /dev/null +++ b/oonib/config.py @@ -0,0 +1,21 @@ +from ooni.utils import Storage +import os + +# XXX convert this to something that is a proper config file +main = Storage() +main.reporting_port = 8888 +main.http_port = 8080 +main.dns_udp_port = 5354 +main.dns_tcp_port = 8002 +main.daphn3_port = 9666 +main.server_version = "Apache" +#main.ssl_private_key = /path/to/data/private.key +#main.ssl_certificate = /path/to/data/certificate.crt +#main.ssl_port = 8433 + +helpers = Storage() +helpers.http_return_request_port = 1234 + +daphn3 = Storage() +daphn3.yaml_file = "/path/to/data/oonib/daphn3.yaml" +daphn3.pcap_file = "/path/to/data/server.pcap"
tor-commits@lists.torproject.org