nginxbeautifier
nginxbeautifier copied to clipboard
Format and beautify nginx config files
I think the following is a common use case of how people want their config files to look: ```nginx log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer"...
I found https://github.com/vasilevich/nginxbeautifier/pull/7 by accident because it was linked in another issue, and was excited to find it already merged and working. But I wouldn't have thought so from https://github.com/vasilevich/nginxbeautifier#usage...
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...
I'm having the issue with https://github.com/Glavin001/atom-beautify that uses this library that: ``` if ($foo) { // code } ``` is turning into ``` if ($foo) { // code } ```...
When parsing a multiline string like this ``` add_header X-Content-Security-Policy "default-src 'self'; \ script-src 'self' https://ssl.google-analytics.com; \ img-src 'self' https://ssl.google-analytics.com"; ``` nginxbeautifier crashes with a following error: ``` /opt/homebrew/lib/node_modules/nginxbeautifier/nginxbeautifier.js:142 return...
such as gofmt, [LuaFormatter](https://github.com/Koihik/LuaFormatter) etc.
I have a config with this location block in it: ``` location = /.well-known/matrix/server { default_type application/json; return 200 '{"m.server":"matrix.kescher.at:443"}'; } ``` If nginxbeautifier tries to format this, it crashes...
``` if ($arg_name = "blah") {return 301 /test/blah;} ``` turns into ``` if ($arg_name = "blah") { return 301 /test/blah } ``` This is missing the ending semi-colon
git tags
Hi, thanks for this quite helpful tool! Would it be possible to get version tags in git? It would help package this cleanly instead of relying on a specific commit...