Extract and clean the XRay JSON config from a running Remnawave node Docker container.
Remnawave node runs XRay inside a Docker container. The running config can be dumped with cli --dump-config, but the raw output contains ANSI escape codes, carriage returns, and Remnawave's own service entries (API inbound, stats, policy) that clutter the actual proxy configuration.
This script: