Changeset View
Changeset View
Standalone View
Standalone View
swh/web/config.py
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | DEFAULT_CONFIG = { | ||||
'test_db': ('string', os.path.join(SETTINGS_DIR, 'testdb.sqlite3')), | 'test_db': ('string', os.path.join(SETTINGS_DIR, 'testdb.sqlite3')), | ||||
'production_db': ('string', '/var/lib/swh/web.sqlite3'), | 'production_db': ('string', '/var/lib/swh/web.sqlite3'), | ||||
'deposit': ('dict', { | 'deposit': ('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': '' | ||||
}), | }), | ||||
'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', ''), | |||||
} | } | ||||
swhweb_config = {} | swhweb_config = {} | ||||
def get_config(config_file='web/web'): | def get_config(config_file='web/web'): | ||||
"""Read the configuration file `config_file`. | """Read the configuration file `config_file`. | ||||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |