-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
17 lines (14 loc) · 953 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
class Config(object):
GERRIT_URL = os.environ.get('GERRIT_URL', 'https://review.lineageos.org')
CACHE_DEFAULT_TIMEOUT = int(os.environ.get('CACHE_DEFAULT_TIMEOUT', '3600'))
CACHE_TYPE = os.environ.get('CACHE_TYPE', 'simple')
CACHE_REDIS_HOST = os.environ.get('CACHE_REDIS_HOST', 'redis')
CACHE_REDIS_DB = os.environ.get('CACHE_REDIS_DB', 4)
WIKI_INSTALL_URL = os.environ.get('WIKI_INSTALL_URL', 'https://wiki.lineageos.org/devices/{device}/install')
WIKI_INFO_URL = os.environ.get('WIKI_INFO_URL', 'https://wiki.lineageos.org/devices/{device}')
UPSTREAM_URL = os.environ.get('UPSTREAM_URL', '')
DOWNLOAD_BASE_URL = os.environ.get('DOWNLOAD_BASE_URL', 'https://mirrorbits.lineageos.org')
EXTRAS_BLOB = os.environ.get('EXTRAS_BLOB', 'extras.json')
DEVICES_JSON_PATH = os.environ.get('DEVICES_JSON_PATH', 'devices.json')
DEVICE_DEPS_PATH = os.environ.get('DEVICE_DEPS_PATH', 'device_deps.json')