Skip to main content

run_with_bind

Function run_with_bind 

Source
pub async fn run_with_bind(
    bamboo_home_dir: PathBuf,
    port: u16,
    bind: &str,
) -> Result<(), String>
Expand description

Run the unified server with custom bind address (Docker/production mode)

Production mode features:

  • Custom bind address (0.0.0.0 for Docker, custom for standalone)
  • Rate limiting enabled (10 req/sec, burst 20)
  • Security headers enabled
  • Request size limits (25MB JSON, 30MB payload)

ยงArguments

  • bamboo_home_dir - Bamboo home directory containing all app data (config, sessions, skills, etc.) Equivalent to ${HOME}/.bamboo in standard installations.
  • port - Port to listen on
  • bind - Bind address (127.0.0.1, 0.0.0.0, or custom)