summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomek Dubrownik <t.dubrownik@gmail.com>2012-09-15 02:55:47 +0200
committerTomek Dubrownik <t.dubrownik@gmail.com>2012-09-15 02:55:47 +0200
commit796083b600c28f20d42a7e891d0d3c94704188b9 (patch)
tree44b21f2ae6fc82bb67ed1bc7e41ff86356617e70
parent6e74a6bda9f3f28fc80ad3226d86b1c1054b030b (diff)
downloadcheckinator-796083b600c28f20d42a7e891d0d3c94704188b9.tar.gz
checkinator-796083b600c28f20d42a7e891d0d3c94704188b9.tar.bz2
checkinator-796083b600c28f20d42a7e891d0d3c94704188b9.zip
better config handling
-rw-r--r--at.cfg.dist14
-rw-r--r--config.py18
2 files changed, 14 insertions, 18 deletions
diff --git a/at.cfg.dist b/at.cfg.dist
new file mode 100644
index 0000000..5dd9c9f
--- /dev/null
+++ b/at.cfg.dist
@@ -0,0 +1,14 @@
+DB = './at.db'
+CAP_FILE = './dhcp-cap'
+LEASE_FILE = './dhcpd.leases'
+LEASE_OFFSET = -60 * 60
+TIMEOUT = 1500
+
+WIKI_URL = 'http://hackerspace.pl/wiki/doku.php?id=people:%(login)s:start'
+
+CLAIMABLE_PREFIX = '10.8.0.' #'192.168.1.'
+CLAIMABLE_EXCLUDE = [
+# '127.0.0.1',
+]
+
+SECRET_KEY = 'adaba'
diff --git a/config.py b/config.py
deleted file mode 100644
index 67f9b04..0000000
--- a/config.py
+++ /dev/null
@@ -1,18 +0,0 @@
-debug = True
-
-port = 8080
-
-db = './at.db'
-cap_file = './dhcp-cap'
-lease_file = './leases'
-lease_offset = 60 * 20
-timeout = 3000
-
-wiki_url = 'http://hackerspace.pl/wiki/doku.php?id=people:%(login)s:start'
-
-claimable_prefix = '' #'192.168.1.'
-claimable_exclude = [
-# '127.0.0.1',
-]
-
-secret_key = 'adaba'