Skip to content

rotem-cider/nginx-jq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nginx JQ

Takes an nginx file and turns it into json

For example to search for any proxy header of ldap

 go get -v github.com/rotem-cider/nginx-jq
 wget https://raw.githubusercontent.com/rotem-cider/nginx-jq/main/tests/nginx.conf
./nginx-jq nginx.conf | jq -r ".. | (select(.Name==\"proxy_set_header\"))? | select(.Parameters[0] | startswith(\"X-Ldap\")) | [.Parameters[0], .Parameters[1]] | @csv"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages