diff --git a/crates/nxmesh-proto/proto/agent.proto b/crates/nxmesh-proto/proto/agent.proto index ed42b96..abeb959 100644 --- a/crates/nxmesh-proto/proto/agent.proto +++ b/crates/nxmesh-proto/proto/agent.proto @@ -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 {