summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomek Dubrownik <t.dubrownik@gmail.com>2012-01-28 21:50:07 +0100
committerTomek Dubrownik <t.dubrownik@gmail.com>2012-01-28 21:50:07 +0100
commitf9696225a224625d610bbd599ed4ba07409b33e5 (patch)
treeea0bd25503b72ea791e499211d1fe86851cf41f1
parent29fb2bfa4b166bb203c3fe43938db0f7b797eaaa (diff)
downloadcheckinator-f9696225a224625d610bbd599ed4ba07409b33e5.tar.gz
checkinator-f9696225a224625d610bbd599ed4ba07409b33e5.tar.bz2
checkinator-f9696225a224625d610bbd599ed4ba07409b33e5.zip
port now configurable
-rw-r--r--at.py2
-rw-r--r--config.py6
2 files changed, 5 insertions, 3 deletions
diff --git a/at.py b/at.py
index 402762b..21e4cc6 100644
--- a/at.py
+++ b/at.py
@@ -264,4 +264,4 @@ if __name__ == '__main__':
conn = setup_db()
updater = DnsmasqUpdater(config.lease_file, config.lease_offset, config.timeout)
updater.start()
- app.run('0.0.0.0')
+ app.run('0.0.0.0', config.port)
diff --git a/config.py b/config.py
index da0c797..e89b78c 100644
--- a/config.py
+++ b/config.py
@@ -1,12 +1,14 @@
+port = 8080
+
db = './at.db'
cap_file = './dhcp-cap'
lease_file = './leases'
lease_offset = 60 * 20
-timeout = 300
+timeout = 3000
wiki_url = 'http://hackerspace.pl/wiki/doku.php?id=people:%(login)s:start'
-claimable_prefix = '10.8.0.'
+claimable_prefix = '192.168.1.'
claimable_exclude = [
# '127.0.0.1',
]