-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.dist.py
34 lines (28 loc) · 980 Bytes
/
config.dist.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import os
BASEDIR = os.path.abspath(os.path.dirname(__file__))
# Enable debugging
# DEBUG = True
# GeoLite2 database location
GEODB_URL = 'http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz'
# Local path to where the geo database will be downloaded
GEODB_PATH = '%s/.tmp/geodb.mmdb' % BASEDIR
# URL to NDN hub information
HUBS_URL = 'http://ndndemo.arl.wustl.edu/testbed-nodes.json'
# Expected format: JSON
# Expected structure:
#
# {
# "<id>": {
# "site": "http://hobo.cs.arizona.edu:80/",
# "position": [ 32.22896140, -110.94832260 ],
# "_real_position": [ 32.22896140, -110.94832260 ], # optional
# },
# "<id2>": {
# ...
# },
# ...
# }
# Local path to where the hub information will be downloaded
HUBS_PATH = '%s/.tmp/hubs.json' % BASEDIR
# Default that is returned whenever the system cannot determine the location
DEFAULT_LOCATION = (34.1340213, -118.3238652)