Skip to content

configs

Jafar edited this page Aug 6, 2025 · 1 revision

The settings for MoA are located in three YAML files in the configs directory, which include config.yml, engine_params.yml, and plugin_params.yml.

config.yml

This file contains the general settings for MoA, including default values for API parameters and items such as proxy settings, etc. Please note that user input parameters in the API take precedence over the values present in this file.

engine_params.yml

This file pertains to the definition and initial settings of each search engine. The main name defined for each engine must match the name of its inherited class in its module. The remaining parameters are its subcategories. For example:

GoogleEngine:
  params:
    max_page: 50
    timeout: 10
    region: "US"
    type: "general"

The type parameter is of high importance. Different engines are categorized based on this value. If not defined, they will be added to the general category.

plugin_params.yml

This file is equivalent to the previous one for plugins, with the difference that the type parameter determines the type of plugin in two formats: pre and post. Pre plugins do not require search results and are executed simultaneously with the engines, while post plugins need search results to function and are therefore executed after the engines.

Clone this wiki locally