ngx
Version:
The Data-driven nginx configuration manager
27 lines (23 loc) • 807 B
Plain Text
// .ngxrc supports JSON5, so you can have comments here
{
// If there is only one configuration file for all environments,
// the `preset` field can be a string instead of object:
// ```
// "preset": "preset.yml"
// ```
"preset": {
"production": "preset/production.yml",
"dev": "preset/my.yml"
},
// The folder that contains uncompiled sources.
// It can be either an absolute path
// or a path relative to the current directory
"src": "src",
// The conf file of the main entry, i.e. the value of `-c` option of nginx.
// `entry` must be inside the `src` directory
"entry": "src/nginx.conf",
// The folder that `ngx` will write built files into.
// The `dest` field will also be
// the value of `-p` option of the vanilla nginx command
"dest": "nginx"
}