Follow

If you ever needed to work with complex configs with a deep include structure you know how annoying this is.

I hacked together a script which, for a given nginx.conf file, lets you:
- get the full tree of includes
- generate a clean config directory *only* with nginx.conf and all the relevant includes
- dump a flat file with all the includes inlined.

There you go:
git.occrp.org/libre/nginx-conf

Yes, it's . Yes, it's slow. Yes, it works.

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!