Commit Graph

82 Commits

Author SHA1 Message Date
0xJacky
9e41ecf9df feat: add support for root block configuration in NgxConfig and implement parsing logic 2026-03-16 03:15:27 +00:00
0xJacky
bc8df5beda feat: add DELETE endpoint for DDNS configuration and implement deletion logic 2026-03-15 02:44:48 +00:00
0xJacky
b3e3aa77a3 fix: update translation file references and add new entries 2026-03-14 14:29:46 +00:00
0xJacky
e5da6dd96d chore: update version to 2.3.3 and increment build number 2026-02-15 00:55:30 +00:00
0xJacky
0649cf786f feat: Implement PID path extraction from nginx -T output
- Added regex pattern for parsing the pid directive in nginx configurations.
- Introduced `getPIDPathFromNginxT` function to extract the pid file path, handling both absolute and relative paths.
- Enhanced `GetPIDPath` function to prioritize user settings, compile-time defaults, and runtime overrides, ensuring robust path resolution.
- Added unit tests for PID regex parsing to validate various scenarios, including standard, indented, and commented directives.

This update improves the handling of pid paths, particularly for nginx-unprivileged setups, and ensures accurate logging and configuration management.
2026-02-08 12:23:50 +00:00
0xJacky
f520a4459a fix(nginx): handle symlinked entries in sandbox configuration copying 2025-12-08 02:34:28 +00:00
0xJacky
ba8a5c4a99 chore: prepare v2.2.2 2025-12-07 11:41:27 +08:00
0xJacky
d92371224c fix: deal locking in SandboxTestConfigWithPaths 2025-11-26 14:02:11 +08:00
0xJacky
fdea3940d8 chore: prepare version v2.2.1 2025-11-25 13:56:10 +08:00
enwikuna
918642f41c Refactor nginx path resolution with improved regex and fallback (#1414)
* Refactor nginx path resolution with improved regex and fallback

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.

* enhance: nginx path parsing and add tests #1412, #1414

---------

Co-authored-by: 0xJacky <me@jackyu.cn>
2025-11-25 13:30:54 +08:00
0xJacky
aee2352eb5 enhance: improve sandbox configuration handling and include directive processing #1430 2025-11-24 08:13:59 +00:00
0xJacky
d6cdf476a9 enhance: streamline sandbox configuration and include handling #1421 2025-11-11 02:02:40 +00:00
Alireza Gholiei
9eb759d567 fix: support Windows in execShell by replacing /bin/sh with cmd.exe (#1389)
Co-authored-by: Alireza Gholie <alireza.gholie@gmail.com>
2025-10-12 11:57:27 +08:00
0xJacky
e71293cd76 feat: add deploy_mode field to namespace and implement sandbox testing for nginx config #1350 2025-10-04 04:51:23 +00:00
0xJacky
de0467b9e7 feat: allow disabling proxy targets availability test #1327 2025-10-03 13:51:12 +00:00
0xJacky
ccedb94880 chore: clean up codes 2025-10-03 14:33:07 +08:00
0xJacky
2742aec1d5 feat(nginx): add RefreshModulesCache endpoint #1333 2025-09-19 01:27:09 +00:00
0xJacky
03fbd9be4c perf: introduced cache for user, site_config, node 2025-08-25 18:50:44 +08:00
0xJacky
0ff4a6e4ed refactor: nginx log with indexer parse and search 2025-08-19 23:01:12 +08:00
0xJacky
e2b66fd8dd feat(dashboard): add sites navigation #1054 2025-08-14 11:04:49 +08:00
0xJacky
c5750cdc9e refactor(nginx): replace os.FindProcess with gopsutil for cross-platform process existence check 2025-08-06 10:46:24 +08:00
0xJacky
fb1d82f29d feat(logging): add debug logging for process checks in nginx 2025-08-06 10:37:41 +08:00
Jacky
479526493e enhance(nginx): use sbin path for reload and test #1206 2025-07-04 15:30:34 +08:00
Jacky
1cb44abc6a enhance(nginx): access and error log path resolution with fallback mechanism 2025-07-04 08:09:00 +08:00
Jacky
11510e4188 fix(nginx): use filepath.Base instead of path.Base for filename extraction #1196 2025-07-02 12:24:29 +00:00
Jacky
34ef1de236 fix(nginx): panic if sbin path is empty #1178 2025-06-28 12:32:13 +08:00
Jacky
1fd24eb175 feat(nginx): add SbinPath option in settings 2025-06-28 00:59:21 +00:00
Jacky
6e8099874e enhance: improve log path validation logic 2025-06-26 04:11:14 +00:00
Jacky
e4dd130157 chore: prepare v2.1.8 2025-06-25 17:25:44 +08:00
Jacky
0d84b5b872 feat: retrieve nginx paths and enhance log cache #1158 2025-06-24 22:06:15 +08:00
Jacky
c36128d31e refactor(ErrorHandling): streamline error handling in API responses and improve SSE performance data transmission 2025-06-24 09:38:48 +00:00
Jacky
48cdfce803 feat(nginx): add tests for OpenResty module parsing and normalize module names 2025-06-24 01:12:38 +00:00
Jacky
e0cec2fedb feat(nginx): add support for dynamically loaded modules and clear modules cache #1136 2025-06-15 10:09:38 +08:00
Jacky
4f0a51a716 fix: improve nginx control logic and enhance error handling 2025-06-05 13:35:09 +00:00
Jacky
b4b4a8a4b6 fix: module loading regex #1108 2025-06-04 15:26:20 +08:00
Jacky
b4553e61ad fix: wrap error with parameters in GetError method of ControlResult 2025-06-02 01:35:50 +00:00
Jacky
88cec9af4b chore: update deps 2025-05-17 19:03:28 +08:00
Jacky
f0b25b6772 fix(nginx): handle nil stdErr in GetOutput method #1056 2025-05-17 10:56:23 +00:00
Jacky
58f5d6d132 refactor(nginx): simplify control error handling 2025-05-13 21:14:36 +08:00
Jacky
909d63bdb1 fix: unify symlink handling for site and stream on posix and win 2025-05-13 08:00:13 +00:00
Jacky
5da4136fcd fix(self-check): supports Windows #1046 2025-05-13 12:10:33 +08:00
Jacky
b055c548fb fix(nginx): improve execCommand to set working directory for Nginx execution #1046 2025-05-13 03:18:02 +00:00
Jacky
5c6036340f chore: update docs 2025-05-13 10:27:10 +08:00
Jacky
03c3b38f36 fix(nginx): correct dynamic module loading status handling 2025-05-13 00:49:13 +00:00
Jacky
d263340bdf feat(nginx-dashboard): add modules table 2025-05-09 21:33:44 +08:00
Jacky
adf6f80061 feat(modules): retrieve nginx modules status 2025-05-09 18:35:00 +08:00
Jacky
202ac03537 feat(self-check): check stream if stream loaded #1028 2025-05-09 08:52:47 +08:00
Jacky
06121ef515 enhance(nginx): executable path resolution and add support for relative paths on Windows 2025-05-04 01:38:11 +00:00
Jacky
d4a4ed1e1c feat(wip): docker ui only 2025-04-20 22:02:29 +08:00
Jacky
1fe6b8b031 enhance(gonginx): lua code parse and format dump
Close #307
2025-04-15 09:31:01 +08:00