Commit Graph

2 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
f6cd63320a Add nginx-compatible HTTP server to C++ daemon
Implemented production-ready HTTP/1.1 server with nginx reverse proxy support:

**Features:**
- POSIX sockets-based HTTP/1.1 server
- Multi-threaded connection handling
- Nginx reverse proxy header support (X-Real-IP, X-Forwarded-For, X-Forwarded-Proto)
- Health check endpoint (/health)
- Version endpoint (/version)
- Status endpoint with proxy info (/status)
- Configurable bind address and port
- Signal handling for graceful shutdown
- 30-second connection timeouts
- Socket reuse and 128 connection backlog

**Command Line:**
- --bind <address> - Bind address (default: 127.0.0.1)
- --port <port> - Port number (default: 8080)
- Includes nginx configuration examples in help

**Documentation:**
- Complete nginx integration guide (NGINX_INTEGRATION.md)
- Reverse proxy configuration examples
- SSL/TLS termination setup
- Load balancing with multiple instances
- Health check configurations
- Systemd service configuration
- Docker deployment examples
- Performance tuning guidelines

**Testing:**
 Build successful (ninja)
 Health endpoint working
 Version endpoint working
 Status endpoint working
 Nginx headers recognized correctly
 404 handling working
 Signal handling (SIGINT/SIGTERM) working

Ready for production deployment behind nginx.

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-25 00:06:01 +00:00
copilot-swe-agent[bot]
b309b20ccc Implement C++ daemon with CMake, Ninja build system
Created complete C++ implementation:
- Core library (client, errors, capabilities)
- Query engine (AST, builder, normalizer)
- Utilities (UUID generation, exponential backoff)
- SQLite adapter and connection pool
- Daemon server with security manager
- Unit, integration, and conformance tests

Build system:
- CMakeLists.txt with optional Conan dependencies
- Renamed build assistant to .cjs for ES module compatibility
- Fixed conanfile.txt format for Conan 2.x
- All tests passing, daemon runs successfully

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-24 22:46:00 +00:00