This website requires JavaScript.
Explore
Help
Sign In
mirrors
/
searxng
Watch
1
Star
0
Fork
You've already forked searxng
0
mirror of
https://github.com/searxng/searxng.git
synced
2024-11-13 13:41:03 +00:00
Code
Issues
Projects
Releases
Wiki
Activity
9f47bdefc6
searxng
/
tests
/
unit
/
settings
/
syntaxerror_settings.yml
4 lines
27 B
YAML
Raw
Normal View
History
Unescape
Escape
[enh] settings.yml: add use_default_settings option (2nd version)
2020-11-27 18:32:45 +00:00
Test
:
[yamllint] tests/unit/settings/syntaxerror_settings.yml Fixed messages reported by:: make test.yamllint Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-05-28 07:03:58 +00:00
"**********"
[mod] revision of the settings_loader The intention of this PR is to modernize the settings_loader implementations. The concept is old (remember, this is partly from 2014), back then we only had one config file, meanwhile we have had a folder with config files for a very long time. Callers can now load a YAML configuration from this folder as follows :: settings_loader.get_yaml_cfg('my-config.yml') - BTW this is a fix of #3557. - Further the `existing_filename_or_none` construct dates back to times when there was not yet a `pathlib.Path` in all Python versions we supported in the past. - Typehints have been added wherever appropriate At the same time, this patch should also be downward compatible and not introduce a new environment variable. The localization of the folder with the configurations is further based on: SEARXNG_SETTINGS_PATH (wich defaults to /etc/searxng/settings.yml) Which means, the default config folder is `/etc/searxng/`. ATTENTION: intended functional changes! If SEARXNG_SETTINGS_PATH was set and pointed to a not existing file, the previous implementation silently loaded the default configuration. This behavior has been changed: if the file or folder does not exist, an EnvironmentError exception will be thrown in future. Closes: https://github.com/searxng/searxng/issues/3557 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-06-12 16:01:18 +00:00
xxx
Reference in a new issue
Copy permalink