Skip to content

Commit d9d35f0

Browse files
authored
NLB-6212: enable R33 directives (#132)
NLB-6212: enable R33 directives
1 parent 68e6709 commit d9d35f0

8 files changed

+4688
-2159
lines changed

analyze.go

+11
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@ package crossplane
4040

4141
// Update for geoip2
4242
//go:generate sh -c "sh ./scripts/generate/generate.sh --url https://github.com/leev/ngx_http_geoip2_module.git --config-path ./scripts/generate/configs/geoip2_config.json > ./analyze_geoip2_directives.gen.go"
43+
44+
// Update for NPlus.
45+
// NPlus source code is private. Please ensure you have the correct access
46+
// and set the URL and branch in the environment variables NPLUS_URL and NPLUS_BRANCH.
47+
// Filter in config is the directives not in https://nginx.org/en/docs/dirindex.html but in source code.
48+
// Override for NPlus R33 and the latest version is for mgmt directives and if directive.
49+
// For mgmt directives, we create a ngxMgmtMainConf as the context, which is not included in the source code.
50+
// For the "if" directive, we create a bitmask ngxConfExpr in crossplane, which is not included in the source code.
51+
//go:generate sh -c "sh ./scripts/generate/generate.sh --url $NPLUS_URL --config-path ./scripts/generate/configs/nplus_latest_config.json --branch $NPLUS_BRANCH --path ./src > ./analyze_nplus_latest_directives.gen.go"
52+
//go:generate sh -c "sh ./scripts/generate/generate.sh --url $NPLUS_URL --config-path ./scripts/generate/configs/nplus_R33_config.json --branch $NPLUS_BRANCH --path ./src > analyze_nplus_R33_directives.gen.go"
53+
4354
import (
4455
"fmt"
4556
)

analyze_njs_directives.gen.go

+10-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)