Patch nginx.conf
This will inject the following into /home/xui/bin/nginx/conf/nginx.conf inside the http {} block:
log_format iptv_monitor '$remote_addr|$http_host|$request|$status|$time_iso8601|$http_user_agent|$request_time|$bytes_sent';
access_log /tmp/accesslogs.txt iptv_monitor;
⚠ nginx will NOT be reloaded automatically. You will be prompted to reboot the server after patching.