All parameters described here: https://nginx.org/en/docs/http/ngx_http_upstream_module.html#server should be configurable through the YAML file.