fix: update ConfigUpdate message to include root_config and improve documentation

This commit is contained in:
GW_MC
2026-04-27 07:14:47 +00:00
parent 7a0111c4c5
commit 98e07715fa

View File

@@ -106,8 +106,11 @@ message Alert {
message ConfigUpdate {
string config_id = 1;
int64 version = 2;
repeated ConfigContent configs = 3;
repeated CertificateContent certificates = 4;
// The root config is the main nginx.conf file, this file will be used as the entry point for nginx configuration. The content of this file should include references to other config files if needed. The agent will write this root config to the nginx config directory and use it to reload nginx.
ConfigContent root_config = 3;
// The other config files that are referenced by the root config, e.g. "site.conf", "private/example.com.conf". If the root config does not reference any other config files, this field can be left empty. The agent will write these config files to the nginx config directory and ensure they are included in the root config.
repeated ConfigContent configs = 4;
repeated CertificateContent certificates = 5;
}
message ConfigContent {