-
Notifications
You must be signed in to change notification settings - Fork 6
Dynamic configuration for running nginx inside Docker #53
Comments
I think Automated Nginx Reverse Proxy for Docker describes the problem pretty well. His solution is to use the nginx-proxy Docker image, which uses docker-gen under the hood...both of which he wrote. :) It looks straightforward, and seems to have some traction in the community. Seems worth investigating further. @jmarin, I think you had some alternatives as well? |
@hkeeler @awolfe76 Since this is not a production website that will be exposed to the public, but more a test app, I think the easiest path would be to serve the content with Node.js and call it a day. The node server would proxy requests to the underlying APIs by reading environment variables passed at runtime, as we do with other services. |
Per today's standup, we decided to stick with Nginx for now, and just get CORS working for grasshopper API. This work will be tracked under cfpb/grasshopper#125. |
👍 Working toward that, leaving nginx.conf as is for now. |
Closing. #76 didn't close this but we're in an ok place. Can re-open if needed. |
Right now the API Proxy backend is hardcoded into the nginx.conf file. Investigate ways to make it configurable at runtime
The text was updated successfully, but these errors were encountered: