You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
searxng/docs/admin
Markus Heiser 2039060b64 [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>
2 months ago
..
answer-captcha [doc] answer CAPTCHA from server's IP 1 year ago
settings [mod] revision of the settings_loader 2 months ago
answer-captcha.rst [doc] answer CAPTCHA from server's IP 1 year ago
api.rst [mod] settings.yml: remove plugin settings for plugins that don't exist anymore 12 months ago
arch_public.dot
architecture.rst
buildhosts.rst [fix] typos in documentation & messages 1 year ago
index.rst [mod] isolation of botdetection from the limiter 11 months ago
installation-apache.rst [fix] spelling 1 year ago
installation-docker.rst Docker: add UWSGI_WORKERS and UWSGI_THREAD environment variables (#2992) 10 months ago
installation-nginx.rst [doc] rearranges Settings & Engines docs for better readability 1 year ago
installation-scripts.rst
installation-searxng.rst [feat] hostname replace plugin: possibility to prioritize certain websites 3 months ago
installation-uwsgi.rst [doc] rearranges Settings & Engines docs for better readability 1 year ago
installation.rst
plugins.rst
searx.limiter.rst [mod] isolation of botdetection from the limiter 11 months ago
update-searxng.rst [fix] typos in documentation & messages 1 year ago