vasilevich / nginxbeautifier

Format and beautify nginx config files
https://nginxbeautifier.com
Apache License 2.0
164 stars 20 forks source link

Support referencing environment variables #20

Open chriskuech opened 2 years ago

chriskuech commented 2 years ago

It is common to use ${MY_VAR} to define environment variable in an nginx config file that are later resolved with envsubst, which is supported on nginx docker containers. Unfortunately, the braces are parsed as blocks and lead to an incorrect config file. Please support ${...} syntax for specifying variables.

This is responsible for https://github.com/raynigon/vscode-nginx-formatter/issues/134