xbp 0.9.3

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
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::Update { domain, port } => nginx::update_nginx(&domain, port, debug).await,
    }
}