Add debug/administration website for ngx_lua_cpp#1
Merged
paintdream merged 2 commits intomasterfrom Mar 26, 2026
Merged
Conversation
- web/nginx.conf: OpenResty config with API endpoints for Lua code execution, log retrieval, log clearing, and server info - web/index.html: Single-page debug console UI with Lua terminal (code editor + output) and server log viewer with auto-refresh Co-authored-by: paintdream <7030141+paintdream@users.noreply.github.com> Agent-Logs-Url: https://github.com/paintdream/ngx_lua_cpp/sessions/f44b2ed1-ba42-480f-9e4a-7035bf3c50ab
Copilot
AI
changed the title
[WIP] Add debug administration website using OpenResty
Add debug/administration website for ngx_lua_cpp
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OpenResty-based debug console for executing Lua code interactively and viewing server logs. All files in
web/.web/nginx.conf/api/exec(POST, runs Lua code),/api/logs(GET, tail log files),/api/logs/clear,/api/infoprint()capture and return value displayinit_worker_by_lua_blockfor ngx_lua_cpp integrationweb/index.htmlCtrl+Enterexecution, output history with success/error coloringUsage
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.