events { worker_connections 64; } http { server { listen 8091; location / { proxy_pass http://localhost:8090; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; sub_filter_types application/json; sub_filter 'ws://localhost:7880' 'wss://livekit.example.com'; sub_filter_once off; } } }