Skip to content

Commit d9f7571

Browse files
NLB-6875: update R34 Directives
1 parent 78a7adf commit d9f7571

File tree

3 files changed

+58
-36
lines changed

3 files changed

+58
-36
lines changed

analyze.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -82,22 +82,22 @@ const (
8282
ngxConfTake1234 = ngxConfTake123 | ngxConfTake4
8383

8484
// bit masks for different directive locations.
85-
ngxDirectConf = 0x00010000 // main file (not used)
86-
ngxMgmtMainConf = 0x00020000 // mgmt // unique bitmask that may not match NGINX source
87-
ngxMainConf = 0x00040000 // main context
88-
ngxEventConf = 0x00080000 // events
89-
ngxMailMainConf = 0x00100000 // mail
90-
ngxMailSrvConf = 0x00200000 // mail > server
91-
ngxStreamMainConf = 0x00400000 // stream
92-
ngxStreamSrvConf = 0x00800000 // stream > server
93-
ngxStreamUpsConf = 0x01000000 // stream > upstream
94-
ngxHTTPMainConf = 0x02000000 // http
95-
ngxHTTPSrvConf = 0x04000000 // http > server
96-
ngxHTTPLocConf = 0x08000000 // http > location
97-
ngxHTTPUpsConf = 0x10000000 // http > upstream
98-
ngxHTTPSifConf = 0x20000000 // http > server > if
99-
ngxHTTPLifConf = 0x40000000 // http > location > if
100-
ngxHTTPLmtConf = 0x80000000 // http > location > limit_except
85+
ngxDirectConf = 0x000010000 // main file (not used)
86+
ngxMgmtMainConf = 0x000020000 // mgmt // unique bitmask that may not match NGINX source
87+
ngxMainConf = 0x000040000 // main context
88+
ngxEventConf = 0x000080000 // events
89+
ngxMailMainConf = 0x000100000 // mail
90+
ngxMailSrvConf = 0x000200000 // mail > server
91+
ngxStreamMainConf = 0x000400000 // stream
92+
ngxStreamSrvConf = 0x000800000 // stream > server
93+
ngxStreamUpsConf = 0x001000000 // stream > upstream
94+
ngxHTTPMainConf = 0x002000000 // http
95+
ngxHTTPSrvConf = 0x004000000 // http > server
96+
ngxHTTPLocConf = 0x008000000 // http > location
97+
ngxHTTPUpsConf = 0x010000000 // http > upstream
98+
ngxHTTPSifConf = 0x020000000 // http > server > if
99+
ngxHTTPLifConf = 0x040000000 // http > location > if
100+
ngxHTTPLmtConf = 0x080000000 // http > location > limit_except
101101
ngxHTTPOIDCConf = 0x100000000 // http > oidc_provider
102102
)
103103

analyze_nplus_latest_directives.gen.go

Lines changed: 18 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/generate/configs/nplus_latest_config.json

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"health_check_header",
77
"body",
88
"body_size",
9-
"proxy",
109
"http2_pool_size",
1110
"post_action",
1211
"pcre_buffer",
@@ -36,7 +35,8 @@
3635
"post_acceptex",
3736
"open_file_cache_events",
3837
"gzip_no_buffer",
39-
"deployment_context"
38+
"deployment_context",
39+
"proxy_location"
4040
],
4141
"override":{
4242
"if":[[ "ngxHTTPSrvConf", "ngxHTTPLocConf", "ngxConfBlock", "ngxConfExpr", "ngxConf1More"]],
@@ -85,7 +85,8 @@
8585
["ngxHTTPMainConf", "ngxHTTPSrvConf", "ngxConfTake1"],
8686
["ngxMailMainConf", "ngxMailSrvConf", "ngxConfTake1"],
8787
["ngxMgmtMainConf", "ngxConfTake1"],
88-
["ngxStreamMainConf", "ngxStreamSrvConf", "ngxConfTake1"]
88+
["ngxStreamMainConf", "ngxStreamSrvConf", "ngxConfTake1"],
89+
["ngxHTTPOIDCConf", "ngxConfTake1"]
8990
],
9091
"ssl_name": [["ngxMgmtMainConf", "ngxConfTake1"]],
9192
"ssl_password_file": [
@@ -105,7 +106,8 @@
105106
["ngxHTTPMainConf", "ngxHTTPSrvConf", "ngxConfTake1"],
106107
["ngxMailMainConf", "ngxMailSrvConf", "ngxConfTake1"],
107108
["ngxMgmtMainConf", "ngxConfTake1"],
108-
["ngxStreamMainConf", "ngxStreamSrvConf", "ngxConfTake1"]
109+
["ngxStreamMainConf", "ngxStreamSrvConf", "ngxConfTake1"],
110+
["ngxHTTPOIDCConf", "ngxConfTake1"]
109111
],
110112
"ssl_verify": [["ngxMgmtMainConf", "ngxConfFlag"]],
111113
"ssl_verify_depth": [
@@ -119,7 +121,24 @@
119121
"enforce_initial_report": [["ngxMgmtMainConf","ngxConfFlag"]],
120122
"license_token": [["ngxMgmtMainConf","ngxConfTake1"]],
121123
"state_path": [["ngxMgmtMainConf","ngxConfTake1"]],
122-
"zone_sync": [["ngxStreamSrvConf","ngxConfNoArgs"]]
124+
"zone_sync": [["ngxStreamSrvConf","ngxConfNoArgs"]],
125+
"proxy":[
126+
["ngxMailMainConf","ngxMailSrvConf","ngxConfFlag"],
127+
["ngxMgmtMainConf","ngxConfTake1"]
128+
],
129+
"proxy_username": [["ngxMgmtMainConf","ngxConfTake1"]],
130+
"proxy_password": [["ngxMgmtMainConf","ngxConfTake1"]],
131+
"client_id": [["ngxHTTPOIDCConf", "ngxConfTake1"]],
132+
"client_secret": [["ngxHTTPOIDCConf", "ngxConfTake1"]],
133+
"issuer": [["ngxHTTPOIDCConf", "ngxConfTake1"]],
134+
"config_url": [["ngxHTTPOIDCConf", "ngxConfTake1"]],
135+
"cookie_name": [["ngxHTTPOIDCConf", "ngxConfTake1"]],
136+
"extra_auth_args": [["ngxHTTPOIDCConf", "ngxConfTake1"]],
137+
"redirect_uri": [["ngxHTTPOIDCConf", "ngxConfTake1"]],
138+
"scope": [["ngxHTTPOIDCConf", "ngxConfTake1"]],
139+
"session_store": [["ngxHTTPOIDCConf", "ngxConfTake1"]],
140+
"session_timeout": [["ngxHTTPOIDCConf", "ngxConfTake1"]]
141+
123142
},
124143
"matchFuncComment":"MatchNginxPlusLatest contains directives in latest version of Nginx Plus source code(including GEOIP, Perl, and XSLT)"
125144
}

0 commit comments

Comments
 (0)