Task: Configure Nginx as a TCP Stream Proxy for MongoDB
Task: Configure Nginx as a TCP Stream Proxy for MongoDB: a task in Terminal-Lego-15k (Harbor dataset). MongoDB uses a binary protocol (not HTTP), so a standard HTTP reverse proxy configuration in Nginx will not work. When you try to proxy MongoDB traffic through an http server block, Nginx…
The task
MongoDB uses a binary protocol (not HTTP), so a standard HTTP reverse proxy configuration in Nginx will not work. When you try to proxy MongoDB traffic through an `http` server block, Nginx interprets the binary MongoDB wire protocol as malformed HTTP requests, resulting in 400 errors and connection failures.
Part of PrimeIntellect/Terminal-Lego-15k.