Changeset View
Changeset View
Standalone View
Standalone View
swh/web/config.py
Show All 16 Lines | |||||
SWH_WEB_INTERNAL_SERVER_NAME = "archive.internal.softwareheritage.org" | SWH_WEB_INTERNAL_SERVER_NAME = "archive.internal.softwareheritage.org" | ||||
STAGING_SERVER_NAMES = [ | STAGING_SERVER_NAMES = [ | ||||
"webapp.staging.swh.network", | "webapp.staging.swh.network", | ||||
"webapp.internal.staging.swh.network", | "webapp.internal.staging.swh.network", | ||||
] | ] | ||||
ORIGIN_VISIT_TYPES = [ | |||||
"cran", | |||||
"deb", | |||||
"deposit", | |||||
"ftp", | |||||
"hg", | |||||
"git", | |||||
"nixguix", | |||||
"npm", | |||||
"pypi", | |||||
"svn", | |||||
"tar", | |||||
] | |||||
SETTINGS_DIR = os.path.dirname(settings.__file__) | SETTINGS_DIR = os.path.dirname(settings.__file__) | ||||
DEFAULT_CONFIG = { | DEFAULT_CONFIG = { | ||||
"allowed_hosts": ("list", []), | "allowed_hosts": ("list", []), | ||||
"storage": ( | "storage": ( | ||||
"dict", | "dict", | ||||
{"cls": "remote", "url": "http://127.0.0.1:5002/", "timeout": 10,}, | {"cls": "remote", "url": "http://127.0.0.1:5002/", "timeout": 10,}, | ||||
), | ), | ||||
▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines |