[GH-ISSUE #54] How to keep the data in multi-line configuration #27

Closed
opened 2026-02-28 01:20:34 +03:00 by kerem · 2 comments
Owner

Originally created by @ssz1025 on GitHub (Oct 31, 2024).
Original GitHub issue: https://github.com/tufanbarisyildirim/gonginx/issues/54

image
image

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" "$request_time" "$host" ';

My original nginx configuration is multi-line, and after parsing it, it becomes one line. How to keep the data in multi-line configuration;
Note: The spaces and line breaks I use are\t \n

Originally created by @ssz1025 on GitHub (Oct 31, 2024). Original GitHub issue: https://github.com/tufanbarisyildirim/gonginx/issues/54 ![image](https://github.com/user-attachments/assets/636f699f-cf87-410e-88ef-07e0aa5dec22) ![image](https://github.com/user-attachments/assets/b1a82260-9acf-4e23-9fa1-f4ae5e4a3db9) log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for" "$request_time" "$host" '; My original nginx configuration is multi-line, and after parsing it, it becomes one line. How to keep the data in multi-line configuration; Note: The spaces and line breaks I use are\t \n
kerem 2026-02-28 01:20:34 +03:00
Author
Owner

@mofantor commented on GitHub (Dec 15, 2024):

regarding this request, I have already submitted a PR:
#54 Keep parameters in their relative lines when in multi-line configuration.
check it out

<!-- gh-comment-id:2543508618 --> @mofantor commented on GitHub (Dec 15, 2024): regarding this request, I have already submitted a PR: [#54 Keep parameters in their relative lines when in multi-line configuration.](https://github.com/tufanbarisyildirim/gonginx/pull/61) check it out
Author
Owner

@tufanbarisyildirim commented on GitHub (Dec 18, 2024):

thanks @mofantor , let's polish it and we merge

<!-- gh-comment-id:2551871223 --> @tufanbarisyildirim commented on GitHub (Dec 18, 2024): thanks @mofantor , let's polish it and we merge
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/gonginx#27
No description provided.