I have a express
web server with static files. Let's call this my express-deployment
.
I'd like to use my ingress-nginx
to serve static files from my express-deployment
without ever actually hitting my express server.
In nginx
this is done with the location
directive where you point to files locally hosted. While I see an option for locations-snippet
in the ingress-nginx
configMap
, I'm not entirely sure how I would have this point to files in another container.
Is this possible with ingress-nginx
? If so how would I go about it? Alternatively, is this something that requires an nginx container to be hosted along side my express server? (Seems odd that I would need 2 nginx for that)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…