Skip to content

An (unofficial) nginx configuration parser

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

tailhook/nginx-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nginx Config Parser (unofficial)

Documentation | Github | Crate

A parser, formatter and AST for nginx configs.

The goal is to:

  1. Validate nginx config, including custom rules
  2. Validate partial configs like location or server directive
  3. Extract facts from nginx config, like domains served or upstream list
  4. Support simple config rewritings like replace variable with actual value
  5. Generate nginx configs

We're starting with small subset of the nginx directives. And we're unlikely be supporting all of the config in the nearest future. But PR's on additional directives are accepted.

Non-goals:

  • Being replacement for nginx -t

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

An (unofficial) nginx configuration parser

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages