-
Notifications
You must be signed in to change notification settings - Fork 4
[Issue #206] fix(nginx): resolve backend IP dynamically #399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
🚀 Development Environment OptionsThis repository supports Dev Containers for a consistent development environment. Option 1: GitHub Codespaces (Recommended)Create a cloud-based development environment:
Option 2: VS Code Dev Containers (Local)Use Dev Containers on your local machine:
Option 3: Traditional Local SetupSet up the development environment manually: # Clone the repository
git clone https://github.com/manavgup/rag_modulo.git
cd rag_modulo
git checkout fix/issue-206-nginx-502-error
# Initialize development environment
make dev-init
make dev-build
make dev-up
make dev-validateAvailable CommandsOnce in your development environment: make help # Show all available commands
make dev-validate # Validate environment setup
make test-atomic # Run atomic tests
make test-unit # Run unit tests
make lint # Run lintingServices AvailableWhen running
This automated message helps reviewers quickly set up the development environment. |
Code Review: Fix nginx 502 errors with dynamic backend resolutionSummaryThis PR addresses issue #206 by implementing dynamic DNS resolution in nginx to prevent 502 Bad Gateway errors when the backend container is restarted. The solution uses Docker's internal DNS resolver to dynamically resolve the backend service name. ✅ Strengths
|
Fixes #206. This PR fixes a 502 Bad Gateway error that occurs when the backend container is restarted. The nginx configuration is updated to dynamically resolve the backend's IP address, preventing the use of a stale, cached IP.