mirror of
https://github.com/searxng/searxng.git
synced 2025-07-16 01:39:24 +02:00
[mod] settings.yml can be /etc/searx/settings.yml
The exact order is * first from SEARX_SETTINGS_PATH, * if not found then from searx code base, * if not found then from /etc/searx/settings.yml * if not found an exception stops searx loading
This commit is contained in:
parent
ee080feaed
commit
9c91ab33f8
3 changed files with 21 additions and 10 deletions
|
@ -100,7 +100,7 @@ static_files = get_static_files(static_path)
|
|||
default_theme = settings['ui']['default_theme']
|
||||
templates_path = get_resources_directory(searx_dir, 'templates', settings['ui']['templates_path'])
|
||||
logger.debug('templates directory is %s', templates_path)
|
||||
themes = get_themes(static_path)
|
||||
themes = get_themes(templates_path)
|
||||
result_templates = get_result_templates(templates_path)
|
||||
global_favicons = []
|
||||
for indice, theme in enumerate(themes):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue