Nginx | Environment Variables | envsubst

preview_player
Показать описание
In this tutorial we learn how to use environment variables in nginx configurations. Working with Docker we define environment variables and start the Nginx container. Before Nginx starts the envsubst function searches and apply the variables defined in templates.

Code Repository:
Рекомендации по теме
Комментарии
Автор

Your invaluable content on NGINX has simplified its usage greatly 👌👌. Your clear explanations have made my learning easy. Thank you for this amazing playlist ! 🙂🙃.

ashlok_chaudhary
Автор

I've finished watching the entire playlist. Well explained. Highly recommended for devs who are yet to start learning Nginx. Well done.

gailleamolong
Автор

Just beautiful!! In adition: you can have nested folders inside /templates, and envsust will move everything to the conf folder so you can handle as many separate configuration templates as you want 😃

carlosarmandocovarrubiasca
Автор

I'm so happy that I've found this channel! Thank you !

ram
Автор

Somehow this was perfect, I didn't know it was so easy, I technically want to use nginx for react frontend but wanted to pass some variables for the backend proxy so thanks so much for explaining this

RedstoneHair
Автор

I don’t think this is a feature of nginx per se, it’s the docker image that has a shell script that runs evnsubst under the hood. I wrote one which listens for updates using inotifywait, it’s pretty simple. You can apply that paradigm with anything really.

habibosaye
Автор

Could you do a nginx log tutorial as well? As well as version control for nginx. Great content btw! Been recommending this to my coworkers

herbertpurpora
Автор

Man, I love your vscode color theme. What is it called?

dasgoll