[GH-ISSUE #1511] Stream Configuration Not Displaying Properly in Nginx UI Basic Mode #3020

Open
opened 2026-02-27 12:30:14 +03:00 by kerem · 0 comments
Owner

Originally created by @DinacoStudio on GitHub (Jan 3, 2026).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1511

Title

Stream configuration for TCP load balancer not rendering correctly in nginx UI Basic Mode

Description

The stream block configuration used for Xray VLESS TCP load balancing on port 449 is not displaying correctly in the nginx UI interface when in Basic Mode. While the configuration file exists and contains valid syntax, the UI fails to render the complete configuration properly, with parts of the code appearing cut off or with broken formatting.

Steps to Reproduce

  1. Open nginx UI on Debian 12
  2. Navigate to the Custom section and create or edit a stream configuration file
  3. Add the following stream block configuration and save it
  4. Switch to Basic Mode
  5. Open the created Stream configuration in the UI
  6. Observe that certain lines are missing, truncated, or have broken formatting

Expected Behavior

The nginx UI should correctly display the entire stream block configuration, preserve all formatting and indentation, and allow editing without losing or truncating any configuration lines.

Actual Behavior

  • In Basic Mode, parts of the configuration are not visible or are truncated
  • Text formatting is broken and the code becomes unreadable
  • The screenshot shows incomplete syntax highlighting and cut-off code sections
  • The issue occurs consistently with multi-line stream blocks

Reproduction Configuration

# TCP load balancer (port 449)
stream {
    log_format vless_lb '$remote_addr:$remote_port [$time_local] '
        '$protocol $status '
        'connect=$upstream_connect_time '
        'session=$session_time '
        'sent=$bytes_sent recv=$bytes_received '
        'upstream=$upstream_addr';
    access_log /var/log/nginx/xray_stream_access.log vless_lb;
    error_log /var/log/nginx/xray_stream_error.log warn;
    upstream xray_vless_449 {
        least_conn;# или hash $remote_addr consistent;
        server 1.1.1.1:449 fail_timeout=15s max_fails=3;
        server 1.1.1.1:449 fail_timeout=15s max_fails=3;
    }
    server {
        listen 449;
        proxy_connect_timeout 5s;
        proxy_timeout 15m;
        proxy_pass xray_vless_449;
    }
    include /etc/nginx/streams-enabled/*;
}
Originally created by @DinacoStudio on GitHub (Jan 3, 2026). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/1511 ## Title Stream configuration for TCP load balancer not rendering correctly in nginx UI Basic Mode ## Description The `stream` block configuration used for Xray VLESS TCP load balancing on port 449 is not displaying correctly in the nginx UI interface when in Basic Mode. While the configuration file exists and contains valid syntax, the UI fails to render the complete configuration properly, with parts of the code appearing cut off or with broken formatting. ## Steps to Reproduce 1. Open nginx UI on Debian 12 2. Navigate to the Custom section and create or edit a stream configuration file 3. Add the following stream block configuration and save it 4. Switch to Basic Mode 5. Open the created Stream configuration in the UI 6. Observe that certain lines are missing, truncated, or have broken formatting ## Expected Behavior The nginx UI should correctly display the entire `stream` block configuration, preserve all formatting and indentation, and allow editing without losing or truncating any configuration lines. ## Actual Behavior - In Basic Mode, parts of the configuration are not visible or are truncated - Text formatting is broken and the code becomes unreadable - The screenshot shows incomplete syntax highlighting and cut-off code sections - The issue occurs consistently with multi-line stream blocks ## Reproduction Configuration ```nginx # TCP load balancer (port 449) stream { log_format vless_lb '$remote_addr:$remote_port [$time_local] ' '$protocol $status ' 'connect=$upstream_connect_time ' 'session=$session_time ' 'sent=$bytes_sent recv=$bytes_received ' 'upstream=$upstream_addr'; access_log /var/log/nginx/xray_stream_access.log vless_lb; error_log /var/log/nginx/xray_stream_error.log warn; upstream xray_vless_449 { least_conn;# или hash $remote_addr consistent; server 1.1.1.1:449 fail_timeout=15s max_fails=3; server 1.1.1.1:449 fail_timeout=15s max_fails=3; } server { listen 449; proxy_connect_timeout 5s; proxy_timeout 15m; proxy_pass xray_vless_449; } include /etc/nginx/streams-enabled/*; }
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#3020
No description provided.