feat: Initialize NxMesh project with Docker, Nginx, PostgreSQL, and Rust backend
- Add Docker Compose configuration for development environment - Create Nginx configuration files for routing and health checks - Set up PostgreSQL database with health checks - Add .dockerignore and .gitignore files to exclude unnecessary files - Initialize Cargo.toml and Cargo.lock for Rust dependencies - Include GNU General Public License for project - Add README.md for project description - Create Justfile for development workflow commands
This commit is contained in:
20
.devcontainer/nginx/conf.d/default.conf
Normal file
20
.devcontainer/nginx/conf.d/default.conf
Normal file
@@ -0,0 +1,20 @@
|
||||
# Default nginx configuration
|
||||
# The agent can dynamically modify this to route traffic as needed
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
# Default health check
|
||||
location /health {
|
||||
access_log off;
|
||||
return 200 "nginx ok\n";
|
||||
add_header Content-Type text/plain;
|
||||
}
|
||||
|
||||
# Default stub - agent configures actual routing
|
||||
location / {
|
||||
return 200 "NxMesh Data Plane\n";
|
||||
add_header Content-Type text/plain;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user