To explain quickly, I have an nginx server running within Docker, acting as a reverse proxy for my Flask web app. A part of my configuration is using proxy_set_header Authorization
to pass some credentials into the proxy_pass
website.
This all works fine - but, I want to push all this stuff to GitHub, and of course don't want want my creds, encoded or not, to show up.
What is my best option here? All I can think of is having something similar to dotenv, but for nginx.conf files rather than .py files.
Does anyone have any ideas on what I could to in order to pass my creds in but without hardcoding them explicitly in the config?