Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 739 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 739 Bytes

Simplistic Java model classes for NGINX config files

Goals

  • POJO style
  • Read-Modify-Write
  • Change only what is known, esp.:
    • Don't change unknown tokens
    • Don't change comments or whitespace
    • This does not have to be perfect for whitespace between known expressions

Non-Goals

  • Validation
  • To Be Fast
  • Access to all aspects of the config
  • Build config from scratch

Alternatives

Restrictions

Anything between upstream and server directives will be moved after the last server directive. This kind of moving also happens to unknown expressions within known blocks.