### Start Fluxer Stack with Docker Compose Source: https://github.com/fluxerapp/fluxer/blob/main/fluxer_docs/docs/operator/get-started.md Use this command to start the Fluxer services in detached mode. For Cloudflare Tunnel configurations, use the combined compose files. ```bash docker compose up -d ``` ```bash docker compose -f docker-compose.yml -f cloudflared.compose.yml up -d ``` -------------------------------- ### JavaScript Initialization for WebAssembly Threading Source: https://github.com/fluxerapp/fluxer/blob/main/fluxer_desktop/native/webrtc-sender/vendor/tract-linalg-0.23.1/MULTITHREAD_BENCHMARKS.md Initialize the WebAssembly module and thread pool in JavaScript. This setup is crucial for wasm-bindgen-rayon to function correctly with multiple threads. ```javascript import init, { initThreadPool, df_set_thread_count } from './pkg/df.js'; await init(); await initThreadPool(navigator.hardwareConcurrency); // wasm-bindgen-rayon df_set_thread_count(4); // sets Executor::RayonGlobal in tract-linalg ``` -------------------------------- ### Download Fluxer Stack Files Source: https://github.com/fluxerapp/fluxer/blob/main/fluxer_docs/docs/operator/get-started.md Create a directory and download the core configuration files for Fluxer self-hosting. ```bash mkdir fluxer cd fluxer base=https://raw.githubusercontent.com/fluxerapp/fluxer/main/deploy/self-hosting curl -fsSLO "$base/docker-compose.yml" curl -fsSLO "$base/Caddyfile" curl -fsSLO "$base/livekit.yaml" curl -fsSL "$base/.env.example" -o .env ``` -------------------------------- ### Monitor Fluxer Stack Startup Source: https://github.com/fluxerapp/fluxer/blob/main/fluxer_docs/docs/operator/get-started.md Check the status of running services and view logs for the API service during startup. Initial startup may take several minutes. ```bash docker compose ps ``` ```bash docker compose logs -f api ``` -------------------------------- ### Verify Fluxer Web App and Assets Source: https://github.com/fluxerapp/fluxer/blob/main/fluxer_docs/docs/operator/get-started.md Check the HTTP headers for the main web app, admin login page, and static assets. This helps confirm that the services are running and accessible. ```bash curl -fsSI "https://$FLUXER_DOMAIN" | sed -n '1,8p' curl -fsSI "https://$FLUXER_DOMAIN/admin/login" | sed -n '1,8p' asset=$(curl -fsS "https://$FLUXER_DOMAIN" | grep -o 'src="[^"]*/assets/[^" ]*"' | head -n1 | cut -d'"' -f2) case "$asset" in http*) curl -fsSI "$asset" | sed -n '1,8p' ;; /*) curl -fsSI "https://$FLUXER_DOMAIN$asset" | sed -n '1,8p' ;; esac curl -fsSI "https://$FLUXER_DOMAIN/fonts/ibm-plex.css?v=3" | sed -n '1,8p' curl -fsSI "https://$FLUXER_DOMAIN/web/favicon-32x32.png" | sed -n '1,8p' ``` -------------------------------- ### Verify Docker and Compose Versions Source: https://github.com/fluxerapp/fluxer/blob/main/fluxer_docs/docs/operator/get-started.md Check if Docker Engine and the Compose plugin meet the minimum version requirements. ```bash docker --version docker compose version ``` -------------------------------- ### Configure Custom WebRTC Path Source: https://github.com/fluxerapp/fluxer/blob/main/fluxer_desktop/native/webrtc-sender/vendor/webrtc-sys/libwebrtc/README.md Specifies the path to a custom WebRTC build within the LiveKit configuration file. This allows the SDK to use a pre-built or custom-compiled WebRTC library. ```toml [env] LK_CUSTOM_WEBRTC = { value = "webrtc-sys/libwebrtc/linux-x64-release", relative = true } ``` -------------------------------- ### Build tract-linalg with Relaxed SIMD Source: https://github.com/fluxerapp/fluxer/blob/main/fluxer_desktop/native/webrtc-sender/vendor/tract-linalg-0.23.1/WASM_RELAXED_SIMD.md Builds the tract-linalg crate with both `simd128` and `relaxed-simd` features, offering a performance boost on FMA-capable hosts. ```sh RUSTFLAGS='-C target-feature=+simd128,+relaxed-simd' \ cargo build --release --target wasm32-wasip1 -p tract-linalg ``` -------------------------------- ### Verify Fluxer Instance Discovery Source: https://github.com/fluxerapp/fluxer/blob/main/fluxer_docs/docs/operator/get-started.md Check instance discovery by querying the well-known Fluxer endpoint. This verifies self-hosted status and the availability of key service endpoints. ```bash curl -fsS "https://$FLUXER_DOMAIN/api/.well-known/fluxer" | jq '.features.self_hosted, .endpoints.admin, .endpoints.gateway, .endpoints.media, .endpoints.static_cdn' ``` -------------------------------- ### Build Linux WebRTC Source: https://github.com/fluxerapp/fluxer/blob/main/fluxer_desktop/native/webrtc-sender/vendor/webrtc-sys/libwebrtc/README.md Builds the WebRTC native library for Linux with specified architecture and profile. After execution, the artifact will be available in a platform-specific directory. ```sh ./build-linux.sh --arch x64 --profile release ```