API Configuration
The api configuration controls various functions in the api service, including but not limited to the service listening address, port, environment configuration, log configuration, etc. Let's take a simple configuration to see what the common configurations in the api do.
#
Configuration instructionsThrough the yaml configuration, we will find that there are many parameters that we are not aligned with config. This is because many of the config definitions are labeled with optional
or default
. For optional
options, you can choose according to your own Need to determine whether it needs to be set. For the default
tag, if you think the default value is enough, you don't need to set it. Generally, the value in default
basically does not need to be modified and can be considered as a best practice value.
#
Config#
rest.RestConfThe basic configuration of api service, including monitoring address, monitoring port, certificate configuration, current limit, fusing parameters, timeout parameters and other controls, expand it, we can see: