Changeset View
Changeset View
Standalone View
Standalone View
swh/web/config.py
# Copyright (C) 2017-2020 The Software Heritage developers | # Copyright (C) 2017-2021 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU Affero General Public License version 3, or any later version | # License: GNU Affero General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import os | import os | ||||
from typing import Any, Dict | from typing import Any, Dict | ||||
from swh.core import config | from swh.core import config | ||||
▲ Show 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | DEFAULT_CONFIG = { | ||||
"development_db": ("string", os.path.join(SETTINGS_DIR, "db.sqlite3")), | "development_db": ("string", os.path.join(SETTINGS_DIR, "db.sqlite3")), | ||||
"test_db": ("string", os.path.join(SETTINGS_DIR, "testdb.sqlite3")), | "test_db": ("string", os.path.join(SETTINGS_DIR, "testdb.sqlite3")), | ||||
"production_db": ("dict", {"name": "swh-web"}), | "production_db": ("dict", {"name": "swh-web"}), | ||||
"deposit": ( | "deposit": ( | ||||
"dict", | "dict", | ||||
{ | { | ||||
"private_api_url": "https://deposit.softwareheritage.org/1/private/", | "private_api_url": "https://deposit.softwareheritage.org/1/private/", | ||||
"private_api_user": "swhworker", | "private_api_user": "swhworker", | ||||
"private_api_password": "", | "private_api_password": "some-password", | ||||
}, | }, | ||||
), | ), | ||||
"coverage_count_origins": ("bool", False), | "coverage_count_origins": ("bool", False), | ||||
"e2e_tests_mode": ("bool", False), | "e2e_tests_mode": ("bool", False), | ||||
"es_workers_index_url": ("string", ""), | "es_workers_index_url": ("string", ""), | ||||
"history_counters_url": ( | "history_counters_url": ( | ||||
"string", | "string", | ||||
"https://stats.export.softwareheritage.org/history_counters.json", | "https://stats.export.softwareheritage.org/history_counters.json", | ||||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |