Skip to content

NLB-6212: enable R33 directives #132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions analyze.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ package crossplane

// Update for geoip2
//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"

// Update for NPlus.
// NPlus source code is private. Please ensure you have the correct access
// and set the URL and branch in the environment variables NPLUS_URL and NPLUS_BRANCH.
// Filter in config is the directives not in https://nginx.org/en/docs/dirindex.html but in source code.
// Override for NPlus R33 and the latest version is for mgmt directives and if directive.
// For mgmt directives, we create a ngxMgmtMainConf as the context, which is not included in the source code.
// For the "if" directive, we create a bitmask ngxConfExpr in crossplane, which is not included in the source code.
//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"
//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"

import (
"fmt"
)
Expand Down
12 changes: 10 additions & 2 deletions analyze_njs_directives.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading