xbp 10.15.4

XBP is a zero-config build pack that can also interact with proxies, kafka, sockets, synthetic monitors.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::cli::commands::NginxSubCommand;
use crate::sdk::nginx;
use anyhow::Result;

pub async fn run_nginx(command: NginxSubCommand, debug: bool) -> Result<()> {
    match command {
        NginxSubCommand::Setup { domain, port } => nginx::setup_nginx(&domain, port, debug).await,
        NginxSubCommand::List => nginx::list_nginx(debug).await,
        NginxSubCommand::Show { domain } => nginx::show_nginx(domain.as_deref(), debug).await,
        NginxSubCommand::Edit { domain } => nginx::edit_nginx(&domain, debug).await,
        NginxSubCommand::Update { domain, port } => nginx::update_nginx(&domain, port, debug).await,
    }
}