forked from lineageos-infra/updater
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
27 lines (21 loc) · 1.7 KB
/
config.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
import os
class Config(object):
GERRIT_URL = os.environ.get('GERRIT_URL', 'https://review.lineageos.org')
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}')
STATUS_URL = os.environ.get('STATUS_URL', '#')
UPSTREAM_URL = os.environ.get('UPSTREAM_URL', '')
DOWNLOAD_BASE_URL = os.environ.get('DOWNLOAD_BASE_URL', 'https://mirrorbits.lineageos.org')
DEVICES_JSON_PATH = os.environ.get('DEVICES_JSON_PATH', 'devices.json')
DEVICES_LOCAL_JSON_PATH = os.environ.get('DEVICES_LOCAL_JSON_PATH', 'devices_local.json')
OFFICIAL_DEVICES_JSON_URL = os.environ.get('OFFICIAL_DEVICES_JSON_URL', 'https://raw.githubusercontent.com/LineageOS/hudson/master/updater/devices.json')
DEVICE_DEPS_PATH = os.environ.get('DEVICE_DEPS_PATH', 'device_deps.json')
OFFICIAL_DEVICE_DEPS_JSON_URL = os.environ.get('OFFICIAL_DEVICE_DEPS_JSON_URL', 'https://raw.githubusercontent.com/LineageOS/hudson/master/updater/device_deps.json')
LINEAGE_BUILD_TARGETS_PATH = os.environ.get('LINEAGE_BUILD_TARGETS_PATH', 'lineage-build-targets')
OFFICIAL_LINEAGE_BUILD_TARGETS_URL = os.environ.get('OFFICIAL_LINEAGE_BUILD_TARGETS_URL', 'https://raw.githubusercontent.com/LineageOS/hudson/master/lineage-build-targets')
class FlaskConfig(object):
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)
CACHE_REDIS_PASSWORD = os.environ.get("CACHE_REDIS_PASSWORD", None)