https://github.com/t1/nginx-config-model
Simplistic Java model classes for NGINX config files
https://github.com/t1/nginx-config-model
java nginx nginx-configuration
Last synced: 7 months ago
JSON representation
Simplistic Java model classes for NGINX config files
- Host: GitHub
- URL: https://github.com/t1/nginx-config-model
- Owner: t1
- License: apache-2.0
- Created: 2017-07-17T07:40:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-01-30T07:48:26.000Z (almost 6 years ago)
- Last Synced: 2025-04-01T07:53:26.790Z (9 months ago)
- Topics: java, nginx, nginx-configuration
- Language: Java
- Homepage:
- Size: 44.9 KB
- Stars: 2
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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
* [odiszapc/nginx-java-parser](https://github.com/odiszapc/nginx-java-parser)
* Doesn't retain empty lines
* Not typesafe
# 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.