My nginx.conf should all be set up to add the environmental variable, see:
# snippet from nginx-test.conf
proxy_set_header Authorization ${CREDS};
etc
etc
And then my docker run command is set up as so:
docker run -e CREDS='Basic mycredsthatihavetohide' --name container-one --v /home/x/x/x/x/Flask/nginx-test.conf:/etc/nginx/nginx.conf.:ro -d -p 8081:80 nginx
But from reading online, I have spotted I need to add envsubst in order for this to work, but I have no idea how and was hoping for some help?