mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2026-04-25 08:45:58 +03:00
[PR #1414] [MERGED] Refactor nginx path resolution with improved regex and fallback #7059
Labels
No labels
Q/A
bug
casdoor
dependencies
docker
documentation
duplicate
enhancement
help wanted
invalid
lego
platform:openwrt
platform:windows
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-ui#7059
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/0xJacky/nginx-ui/pull/1414
Author: @enwikuna
Created: 10/29/2025
Status: ✅ Merged
Merged: 11/25/2025
Merged by: @0xJacky
Base:
dev← Head:patch-1📝 Commits (2)
8b565a4Refactor nginx path resolution with improved regex and fallbackf5df9beenhance: nginx path parsing and add tests #1412, #1414📊 Changes
3 files changed (+212 additions, -52 deletions)
View changed files
📝
api/cluster/node.go(+1 -8)📝
internal/nginx/resolve_path.go(+110 -44)➕
internal/nginx/resolve_path_test.go(+101 -0)📄 Description
Updated regex patterns for extracting nginx configuration paths and added fallback mechanisms for determining paths on different operating systems. Improved error handling and logging for better debugging.
If we have helped you, please leave our company a nice review: https://g.page/r/CaNMAPSpl68TEBM/review
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.