@enjoys/context-engine 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +477 -100
- package/data/commands/journalctl.json +203 -66
- package/data/commands/manifest.json +6 -2
- package/data/commands/systemctl.json +800 -23
- package/data/commands/systemd-analyze.json +239 -0
- package/data/commands/zsh.json +166 -0
- package/data/completion/nginx.json +561 -77
- package/data/completion/systemd.json +795 -47
- package/data/completion/zsh.json +829 -70
- package/data/defination/nginx.json +416 -32
- package/data/defination/systemd.json +538 -56
- package/data/defination/zsh.json +323 -86
- package/data/hover/nginx.json +59 -17
- package/data/hover/systemd.json +42 -7
- package/data/hover/zsh.json +44 -9
- package/package.json +7 -3
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"language": "nginx",
|
|
3
3
|
"definitions": {
|
|
4
|
+
"http": {
|
|
5
|
+
"signature": "http { ... }",
|
|
6
|
+
"description": "The top-level block for all HTTP configuration. Contains server blocks, upstream definitions, and global HTTP settings.",
|
|
7
|
+
"type": "block",
|
|
8
|
+
"module": "ngx_http_core_module"
|
|
9
|
+
},
|
|
10
|
+
"events": {
|
|
11
|
+
"signature": "events { ... }",
|
|
12
|
+
"description": "Configure connection processing parameters: worker_connections, multi_accept, use (epoll/kqueue).",
|
|
13
|
+
"type": "block",
|
|
14
|
+
"module": "ngx_core_module"
|
|
15
|
+
},
|
|
4
16
|
"server": {
|
|
5
17
|
"signature": "server { ... }",
|
|
6
18
|
"description": "Defines a virtual server. Each server block can listen on different ports and respond to different domain names.",
|
|
@@ -9,85 +21,307 @@
|
|
|
9
21
|
},
|
|
10
22
|
"location": {
|
|
11
23
|
"signature": "location [modifier] uri { ... }",
|
|
12
|
-
"description": "Sets configuration based on
|
|
24
|
+
"description": "Sets configuration based on request URI. Modifiers: = (exact), ~ (regex), ~* (case-insensitive regex), ^~ (prefix priority). Priority: = > ^~ > ~/~* > prefix.",
|
|
13
25
|
"type": "block",
|
|
14
26
|
"module": "ngx_http_core_module"
|
|
15
27
|
},
|
|
16
28
|
"upstream": {
|
|
17
29
|
"signature": "upstream name { ... }",
|
|
18
|
-
"description": "Defines a group of servers for load balancing.
|
|
30
|
+
"description": "Defines a group of servers for load balancing. Methods: round-robin (default), least_conn, ip_hash, hash, random.",
|
|
19
31
|
"type": "block",
|
|
20
32
|
"module": "ngx_http_upstream_module"
|
|
21
33
|
},
|
|
34
|
+
"map": {
|
|
35
|
+
"signature": "map $variable $new_variable { ... }",
|
|
36
|
+
"description": "Creates a new variable whose value depends on values of one or more source variables. Supports regex and default.",
|
|
37
|
+
"type": "block",
|
|
38
|
+
"module": "ngx_http_map_module"
|
|
39
|
+
},
|
|
40
|
+
"geo": {
|
|
41
|
+
"signature": "geo [$address] $variable { ... }",
|
|
42
|
+
"description": "Creates variables based on client IP address or CIDR ranges.",
|
|
43
|
+
"type": "block",
|
|
44
|
+
"module": "ngx_http_geo_module"
|
|
45
|
+
},
|
|
46
|
+
"types": {
|
|
47
|
+
"signature": "types { ... }",
|
|
48
|
+
"description": "Maps file extensions to MIME types. Usually included from mime.types file.",
|
|
49
|
+
"type": "block",
|
|
50
|
+
"module": "ngx_http_core_module"
|
|
51
|
+
},
|
|
52
|
+
"stream": {
|
|
53
|
+
"signature": "stream { ... }",
|
|
54
|
+
"description": "TCP/UDP proxy configuration block. Used for non-HTTP protocols like MySQL, PostgreSQL, DNS.",
|
|
55
|
+
"type": "block",
|
|
56
|
+
"module": "ngx_stream_core_module"
|
|
57
|
+
},
|
|
22
58
|
"listen": {
|
|
23
|
-
"signature": "listen address[:port] [ssl] [http2]",
|
|
24
|
-
"description": "Sets the address and port
|
|
59
|
+
"signature": "listen address[:port] [ssl] [http2] [default_server] [backlog=n]",
|
|
60
|
+
"description": "Sets the address and port for the server. Supports IPv4, IPv6 ([::]:80), Unix sockets, ssl, http2, and default_server.",
|
|
25
61
|
"type": "directive",
|
|
26
62
|
"module": "ngx_http_core_module"
|
|
27
63
|
},
|
|
28
64
|
"server_name": {
|
|
29
65
|
"signature": "server_name name [...]",
|
|
30
|
-
"description": "Sets
|
|
66
|
+
"description": "Sets virtual server names. Supports: exact names, wildcard (*.example.com), regex (~^www\\.(.+)\\.com$). Checked in that order.",
|
|
31
67
|
"type": "directive",
|
|
32
68
|
"module": "ngx_http_core_module"
|
|
33
69
|
},
|
|
34
70
|
"root": {
|
|
35
71
|
"signature": "root path",
|
|
36
|
-
"description": "Sets the root directory for requests.
|
|
72
|
+
"description": "Sets the root directory for requests. Full path = root + URI. Use alias to replace the location prefix instead.",
|
|
73
|
+
"type": "directive",
|
|
74
|
+
"module": "ngx_http_core_module"
|
|
75
|
+
},
|
|
76
|
+
"alias": {
|
|
77
|
+
"signature": "alias path",
|
|
78
|
+
"description": "Replaces the matched location prefix with the specified path. Unlike root, does not append the URI.",
|
|
79
|
+
"type": "directive",
|
|
80
|
+
"module": "ngx_http_core_module"
|
|
81
|
+
},
|
|
82
|
+
"index": {
|
|
83
|
+
"signature": "index file [...]",
|
|
84
|
+
"description": "Defines files used as an index when URI ends with /. Checked in order, first found is used.",
|
|
85
|
+
"type": "directive",
|
|
86
|
+
"module": "ngx_http_index_module"
|
|
87
|
+
},
|
|
88
|
+
"autoindex": {
|
|
89
|
+
"signature": "autoindex on|off",
|
|
90
|
+
"description": "Enables or disables directory listing when no index file is found.",
|
|
91
|
+
"type": "directive",
|
|
92
|
+
"module": "ngx_http_autoindex_module"
|
|
93
|
+
},
|
|
94
|
+
"error_page": {
|
|
95
|
+
"signature": "error_page code ... [=response] uri",
|
|
96
|
+
"description": "Defines custom error pages. Can also change response code: error_page 404 =200 /empty.gif",
|
|
97
|
+
"type": "directive",
|
|
98
|
+
"module": "ngx_http_core_module"
|
|
99
|
+
},
|
|
100
|
+
"include": {
|
|
101
|
+
"signature": "include file|mask",
|
|
102
|
+
"description": "Include another config file or files matching a glob pattern.",
|
|
103
|
+
"type": "directive",
|
|
104
|
+
"module": "ngx_core_module"
|
|
105
|
+
},
|
|
106
|
+
"default_type": {
|
|
107
|
+
"signature": "default_type mime-type",
|
|
108
|
+
"description": "Sets the default MIME type for responses when the type cannot be determined.",
|
|
37
109
|
"type": "directive",
|
|
38
110
|
"module": "ngx_http_core_module"
|
|
39
111
|
},
|
|
40
112
|
"proxy_pass": {
|
|
41
113
|
"signature": "proxy_pass URL",
|
|
42
|
-
"description": "Passes the request to a proxied server.
|
|
114
|
+
"description": "Passes the request to a proxied server. URL can include protocol, address, URI. A trailing / on the URL replaces the location prefix.",
|
|
43
115
|
"type": "directive",
|
|
44
116
|
"module": "ngx_http_proxy_module"
|
|
45
117
|
},
|
|
46
118
|
"proxy_set_header": {
|
|
47
119
|
"signature": "proxy_set_header field value",
|
|
48
|
-
"description": "Redefines
|
|
120
|
+
"description": "Redefines request headers passed to the proxied server. Essential: Host, X-Real-IP, X-Forwarded-For, X-Forwarded-Proto.",
|
|
121
|
+
"type": "directive",
|
|
122
|
+
"module": "ngx_http_proxy_module"
|
|
123
|
+
},
|
|
124
|
+
"proxy_http_version": {
|
|
125
|
+
"signature": "proxy_http_version 1.0|1.1",
|
|
126
|
+
"description": "Sets the HTTP protocol version for proxying. Use 1.1 for keepalive connections and WebSocket support.",
|
|
127
|
+
"type": "directive",
|
|
128
|
+
"module": "ngx_http_proxy_module"
|
|
129
|
+
},
|
|
130
|
+
"proxy_redirect": {
|
|
131
|
+
"signature": "proxy_redirect default|off|redirect replacement",
|
|
132
|
+
"description": "Changes the Location and Refresh response headers from the proxied server.",
|
|
133
|
+
"type": "directive",
|
|
134
|
+
"module": "ngx_http_proxy_module"
|
|
135
|
+
},
|
|
136
|
+
"proxy_buffering": {
|
|
137
|
+
"signature": "proxy_buffering on|off",
|
|
138
|
+
"description": "Enables buffering of responses from the proxied server. Off = pass through immediately (useful for streaming).",
|
|
139
|
+
"type": "directive",
|
|
140
|
+
"module": "ngx_http_proxy_module"
|
|
141
|
+
},
|
|
142
|
+
"proxy_cache": {
|
|
143
|
+
"signature": "proxy_cache zone|off",
|
|
144
|
+
"description": "Defines a shared memory zone used for caching proxied responses.",
|
|
145
|
+
"type": "directive",
|
|
146
|
+
"module": "ngx_http_proxy_module"
|
|
147
|
+
},
|
|
148
|
+
"proxy_cache_path": {
|
|
149
|
+
"signature": "proxy_cache_path path levels= keys_zone= [max_size=] [inactive=]",
|
|
150
|
+
"description": "Sets the path and parameters for the proxy cache. levels defines directory hierarchy, keys_zone defines shared memory.",
|
|
151
|
+
"type": "directive",
|
|
152
|
+
"module": "ngx_http_proxy_module"
|
|
153
|
+
},
|
|
154
|
+
"proxy_cache_valid": {
|
|
155
|
+
"signature": "proxy_cache_valid [code ...] time",
|
|
156
|
+
"description": "Sets caching time for different response codes. E.g., proxy_cache_valid 200 302 10m;",
|
|
157
|
+
"type": "directive",
|
|
158
|
+
"module": "ngx_http_proxy_module"
|
|
159
|
+
},
|
|
160
|
+
"proxy_connect_timeout": {
|
|
161
|
+
"signature": "proxy_connect_timeout time",
|
|
162
|
+
"description": "Timeout for establishing a connection with the proxied server. Default: 60s.",
|
|
163
|
+
"type": "directive",
|
|
164
|
+
"module": "ngx_http_proxy_module"
|
|
165
|
+
},
|
|
166
|
+
"proxy_read_timeout": {
|
|
167
|
+
"signature": "proxy_read_timeout time",
|
|
168
|
+
"description": "Timeout for reading a response from the proxied server. Default: 60s.",
|
|
169
|
+
"type": "directive",
|
|
170
|
+
"module": "ngx_http_proxy_module"
|
|
171
|
+
},
|
|
172
|
+
"proxy_send_timeout": {
|
|
173
|
+
"signature": "proxy_send_timeout time",
|
|
174
|
+
"description": "Timeout for transmitting a request to the proxied server. Default: 60s.",
|
|
49
175
|
"type": "directive",
|
|
50
176
|
"module": "ngx_http_proxy_module"
|
|
51
177
|
},
|
|
52
178
|
"ssl_certificate": {
|
|
53
179
|
"signature": "ssl_certificate file",
|
|
54
|
-
"description": "Specifies the PEM-format certificate file
|
|
180
|
+
"description": "Specifies the PEM-format certificate file (public key). Should include intermediate certificates (fullchain).",
|
|
55
181
|
"type": "directive",
|
|
56
182
|
"module": "ngx_http_ssl_module"
|
|
57
183
|
},
|
|
58
184
|
"ssl_certificate_key": {
|
|
59
185
|
"signature": "ssl_certificate_key file",
|
|
60
|
-
"description": "Specifies the PEM-format private key file
|
|
186
|
+
"description": "Specifies the PEM-format private key file.",
|
|
187
|
+
"type": "directive",
|
|
188
|
+
"module": "ngx_http_ssl_module"
|
|
189
|
+
},
|
|
190
|
+
"ssl_protocols": {
|
|
191
|
+
"signature": "ssl_protocols [SSLv2] [SSLv3] [TLSv1] [TLSv1.1] [TLSv1.2] [TLSv1.3]",
|
|
192
|
+
"description": "Enables the specified SSL/TLS protocols. Modern: TLSv1.2 TLSv1.3.",
|
|
193
|
+
"type": "directive",
|
|
194
|
+
"module": "ngx_http_ssl_module"
|
|
195
|
+
},
|
|
196
|
+
"ssl_ciphers": {
|
|
197
|
+
"signature": "ssl_ciphers ciphers",
|
|
198
|
+
"description": "Specifies the enabled ciphers in OpenSSL format. Use openssl ciphers to list available.",
|
|
199
|
+
"type": "directive",
|
|
200
|
+
"module": "ngx_http_ssl_module"
|
|
201
|
+
},
|
|
202
|
+
"ssl_prefer_server_ciphers": {
|
|
203
|
+
"signature": "ssl_prefer_server_ciphers on|off",
|
|
204
|
+
"description": "Prefer server ciphers over client ciphers. Recommended for TLSv1.2, not needed for TLSv1.3.",
|
|
205
|
+
"type": "directive",
|
|
206
|
+
"module": "ngx_http_ssl_module"
|
|
207
|
+
},
|
|
208
|
+
"ssl_session_cache": {
|
|
209
|
+
"signature": "ssl_session_cache off|none|shared:name:size",
|
|
210
|
+
"description": "Configure SSL session cache. shared:SSL:10m stores ~40000 sessions.",
|
|
211
|
+
"type": "directive",
|
|
212
|
+
"module": "ngx_http_ssl_module"
|
|
213
|
+
},
|
|
214
|
+
"ssl_session_timeout": {
|
|
215
|
+
"signature": "ssl_session_timeout time",
|
|
216
|
+
"description": "Timeout for SSL session reuse. Default: 5m.",
|
|
217
|
+
"type": "directive",
|
|
218
|
+
"module": "ngx_http_ssl_module"
|
|
219
|
+
},
|
|
220
|
+
"ssl_stapling": {
|
|
221
|
+
"signature": "ssl_stapling on|off",
|
|
222
|
+
"description": "Enable OCSP stapling. Sends certificate status during TLS handshake (faster verification).",
|
|
223
|
+
"type": "directive",
|
|
224
|
+
"module": "ngx_http_ssl_module"
|
|
225
|
+
},
|
|
226
|
+
"ssl_dhparam": {
|
|
227
|
+
"signature": "ssl_dhparam file",
|
|
228
|
+
"description": "Specifies DH parameters file for DHE ciphers. Generate: openssl dhparam -out dhparam.pem 2048",
|
|
61
229
|
"type": "directive",
|
|
62
230
|
"module": "ngx_http_ssl_module"
|
|
63
231
|
},
|
|
64
232
|
"try_files": {
|
|
65
233
|
"signature": "try_files file ... uri | =code",
|
|
66
|
-
"description": "Checks
|
|
234
|
+
"description": "Checks files in order, returns first found. Last parameter is fallback URI or error code. Essential for SPA and CMS routing.",
|
|
67
235
|
"type": "directive",
|
|
68
236
|
"module": "ngx_http_core_module"
|
|
69
237
|
},
|
|
70
238
|
"rewrite": {
|
|
71
239
|
"signature": "rewrite regex replacement [flag]",
|
|
72
|
-
"description": "Rewrites
|
|
240
|
+
"description": "Rewrites URI using PCRE regex. Flags: last (restart processing), break (stop rewriting), redirect (302), permanent (301).",
|
|
73
241
|
"type": "directive",
|
|
74
242
|
"module": "ngx_http_rewrite_module"
|
|
75
243
|
},
|
|
76
244
|
"return": {
|
|
77
245
|
"signature": "return code [text|URL]",
|
|
78
|
-
"description": "Stops processing and returns
|
|
246
|
+
"description": "Stops processing and returns response. Codes 301/302/303/307/308 + URL for redirects. 200 + text for direct response.",
|
|
247
|
+
"type": "directive",
|
|
248
|
+
"module": "ngx_http_rewrite_module"
|
|
249
|
+
},
|
|
250
|
+
"set": {
|
|
251
|
+
"signature": "set $variable value",
|
|
252
|
+
"description": "Sets the value of a variable. Variables can then be used in other directives.",
|
|
253
|
+
"type": "directive",
|
|
254
|
+
"module": "ngx_http_rewrite_module"
|
|
255
|
+
},
|
|
256
|
+
"if": {
|
|
257
|
+
"signature": "if (condition) { ... }",
|
|
258
|
+
"description": "Conditional evaluation. Conditions: variable, =, !=, ~, ~*, !~, -f, -d, -e, -x. Use sparingly (nginx's 'if is evil').",
|
|
79
259
|
"type": "directive",
|
|
80
260
|
"module": "ngx_http_rewrite_module"
|
|
81
261
|
},
|
|
82
262
|
"gzip": {
|
|
83
263
|
"signature": "gzip on|off",
|
|
84
|
-
"description": "Enables
|
|
264
|
+
"description": "Enables gzip compression of responses. Reduces transfer size but uses CPU.",
|
|
265
|
+
"type": "directive",
|
|
266
|
+
"module": "ngx_http_gzip_module"
|
|
267
|
+
},
|
|
268
|
+
"gzip_types": {
|
|
269
|
+
"signature": "gzip_types mime-type ...",
|
|
270
|
+
"description": "MIME types to compress in addition to text/html (always compressed).",
|
|
271
|
+
"type": "directive",
|
|
272
|
+
"module": "ngx_http_gzip_module"
|
|
273
|
+
},
|
|
274
|
+
"gzip_vary": {
|
|
275
|
+
"signature": "gzip_vary on|off",
|
|
276
|
+
"description": "Adds Vary: Accept-Encoding header. Important for proxy caches to store both compressed and uncompressed versions.",
|
|
277
|
+
"type": "directive",
|
|
278
|
+
"module": "ngx_http_gzip_module"
|
|
279
|
+
},
|
|
280
|
+
"gzip_comp_level": {
|
|
281
|
+
"signature": "gzip_comp_level level",
|
|
282
|
+
"description": "Compression level 1-9. Higher = more compression but more CPU. 4-6 is a good balance.",
|
|
283
|
+
"type": "directive",
|
|
284
|
+
"module": "ngx_http_gzip_module"
|
|
285
|
+
},
|
|
286
|
+
"gzip_min_length": {
|
|
287
|
+
"signature": "gzip_min_length length",
|
|
288
|
+
"description": "Minimum response length to compress. Default: 20. Set higher (256-1000) to avoid compressing tiny responses.",
|
|
289
|
+
"type": "directive",
|
|
290
|
+
"module": "ngx_http_gzip_module"
|
|
291
|
+
},
|
|
292
|
+
"gzip_proxied": {
|
|
293
|
+
"signature": "gzip_proxied off|expired|no-cache|no-store|private|no_last_modified|no_etag|auth|any",
|
|
294
|
+
"description": "Enables compression for proxied requests based on request/response headers.",
|
|
85
295
|
"type": "directive",
|
|
86
296
|
"module": "ngx_http_gzip_module"
|
|
87
297
|
},
|
|
298
|
+
"limit_req_zone": {
|
|
299
|
+
"signature": "limit_req_zone key zone=name:size rate=rate",
|
|
300
|
+
"description": "Defines shared memory zone for rate limiting. Key: usually $binary_remote_addr. Rate: requests per second (r/s) or minute (r/m).",
|
|
301
|
+
"type": "directive",
|
|
302
|
+
"module": "ngx_http_limit_req_module"
|
|
303
|
+
},
|
|
304
|
+
"limit_req": {
|
|
305
|
+
"signature": "limit_req zone=name [burst=n] [nodelay|delay=n]",
|
|
306
|
+
"description": "Enables rate limiting in a location. burst allows temporary spikes. nodelay processes burst immediately.",
|
|
307
|
+
"type": "directive",
|
|
308
|
+
"module": "ngx_http_limit_req_module"
|
|
309
|
+
},
|
|
310
|
+
"limit_conn_zone": {
|
|
311
|
+
"signature": "limit_conn_zone key zone=name:size",
|
|
312
|
+
"description": "Defines shared memory zone for connection limiting.",
|
|
313
|
+
"type": "directive",
|
|
314
|
+
"module": "ngx_http_limit_conn_module"
|
|
315
|
+
},
|
|
316
|
+
"limit_conn": {
|
|
317
|
+
"signature": "limit_conn zone number",
|
|
318
|
+
"description": "Limits the number of concurrent connections from a single key (usually IP).",
|
|
319
|
+
"type": "directive",
|
|
320
|
+
"module": "ngx_http_limit_conn_module"
|
|
321
|
+
},
|
|
88
322
|
"access_log": {
|
|
89
|
-
"signature": "access_log path [format]",
|
|
90
|
-
"description": "Sets
|
|
323
|
+
"signature": "access_log path [format] [if=condition]",
|
|
324
|
+
"description": "Sets access log path and format. Can be conditional. Use 'off' to disable.",
|
|
91
325
|
"type": "directive",
|
|
92
326
|
"module": "ngx_http_log_module"
|
|
93
327
|
},
|
|
@@ -97,35 +331,185 @@
|
|
|
97
331
|
"type": "directive",
|
|
98
332
|
"module": "ngx_core_module"
|
|
99
333
|
},
|
|
100
|
-
"
|
|
101
|
-
"signature": "
|
|
102
|
-
"description": "
|
|
334
|
+
"log_format": {
|
|
335
|
+
"signature": "log_format name [escape=default|json|none] string ...",
|
|
336
|
+
"description": "Defines a named log format. Variables: $remote_addr, $request, $status, $body_bytes_sent, etc.",
|
|
103
337
|
"type": "directive",
|
|
104
|
-
"module": "
|
|
338
|
+
"module": "ngx_http_log_module"
|
|
105
339
|
},
|
|
106
340
|
"add_header": {
|
|
107
341
|
"signature": "add_header name value [always]",
|
|
108
|
-
"description": "Adds a
|
|
342
|
+
"description": "Adds a response header. Use 'always' to add regardless of response code (including 4xx/5xx).",
|
|
109
343
|
"type": "directive",
|
|
110
344
|
"module": "ngx_http_headers_module"
|
|
111
345
|
},
|
|
112
|
-
"limit_req_zone": {
|
|
113
|
-
"signature": "limit_req_zone key zone=name:size rate=rate",
|
|
114
|
-
"description": "Defines a shared memory zone for rate limiting. Key is typically $binary_remote_addr.",
|
|
115
|
-
"type": "directive",
|
|
116
|
-
"module": "ngx_http_limit_req_module"
|
|
117
|
-
},
|
|
118
346
|
"expires": {
|
|
119
347
|
"signature": "expires [modified] time | epoch | max | off",
|
|
120
|
-
"description": "Sets
|
|
348
|
+
"description": "Sets Expires and Cache-Control headers. Values: 30d, 1h, max, off. epoch = no-cache.",
|
|
121
349
|
"type": "directive",
|
|
122
350
|
"module": "ngx_http_headers_module"
|
|
123
351
|
},
|
|
124
|
-
"
|
|
125
|
-
"signature": "
|
|
126
|
-
"description": "
|
|
352
|
+
"allow": {
|
|
353
|
+
"signature": "allow address|CIDR|all",
|
|
354
|
+
"description": "Allow access from the specified address or network.",
|
|
127
355
|
"type": "directive",
|
|
128
|
-
"module": "
|
|
356
|
+
"module": "ngx_http_access_module"
|
|
357
|
+
},
|
|
358
|
+
"deny": {
|
|
359
|
+
"signature": "deny address|CIDR|all",
|
|
360
|
+
"description": "Deny access from the specified address or network.",
|
|
361
|
+
"type": "directive",
|
|
362
|
+
"module": "ngx_http_access_module"
|
|
363
|
+
},
|
|
364
|
+
"auth_basic": {
|
|
365
|
+
"signature": "auth_basic string|off",
|
|
366
|
+
"description": "Enable HTTP Basic authentication. String is the realm name shown in the browser dialog.",
|
|
367
|
+
"type": "directive",
|
|
368
|
+
"module": "ngx_http_auth_basic_module"
|
|
369
|
+
},
|
|
370
|
+
"auth_basic_user_file": {
|
|
371
|
+
"signature": "auth_basic_user_file file",
|
|
372
|
+
"description": "Path to the htpasswd file. Generate: htpasswd -c /etc/nginx/.htpasswd username",
|
|
373
|
+
"type": "directive",
|
|
374
|
+
"module": "ngx_http_auth_basic_module"
|
|
375
|
+
},
|
|
376
|
+
"client_max_body_size": {
|
|
377
|
+
"signature": "client_max_body_size size",
|
|
378
|
+
"description": "Maximum allowed client request body size. Returns 413 if exceeded. Default: 1m. Use 0 to disable.",
|
|
379
|
+
"type": "directive",
|
|
380
|
+
"module": "ngx_http_core_module"
|
|
381
|
+
},
|
|
382
|
+
"client_body_timeout": {
|
|
383
|
+
"signature": "client_body_timeout time",
|
|
384
|
+
"description": "Timeout for reading the client request body. Default: 60s.",
|
|
385
|
+
"type": "directive",
|
|
386
|
+
"module": "ngx_http_core_module"
|
|
387
|
+
},
|
|
388
|
+
"client_header_timeout": {
|
|
389
|
+
"signature": "client_header_timeout time",
|
|
390
|
+
"description": "Timeout for reading the client request header. Default: 60s.",
|
|
391
|
+
"type": "directive",
|
|
392
|
+
"module": "ngx_http_core_module"
|
|
393
|
+
},
|
|
394
|
+
"sendfile": {
|
|
395
|
+
"signature": "sendfile on|off",
|
|
396
|
+
"description": "Enables kernel sendfile() for serving static files. Bypasses user-space copying (zero-copy).",
|
|
397
|
+
"type": "directive",
|
|
398
|
+
"module": "ngx_http_core_module"
|
|
399
|
+
},
|
|
400
|
+
"tcp_nopush": {
|
|
401
|
+
"signature": "tcp_nopush on|off",
|
|
402
|
+
"description": "Enables TCP_CORK/TCP_NOPUSH. Sends response headers and beginning of file in one packet.",
|
|
403
|
+
"type": "directive",
|
|
404
|
+
"module": "ngx_http_core_module"
|
|
405
|
+
},
|
|
406
|
+
"tcp_nodelay": {
|
|
407
|
+
"signature": "tcp_nodelay on|off",
|
|
408
|
+
"description": "Enables TCP_NODELAY for keepalive connections. Disables Nagle's algorithm.",
|
|
409
|
+
"type": "directive",
|
|
410
|
+
"module": "ngx_http_core_module"
|
|
411
|
+
},
|
|
412
|
+
"keepalive_timeout": {
|
|
413
|
+
"signature": "keepalive_timeout timeout [header_timeout]",
|
|
414
|
+
"description": "First value: server-side keepalive timeout. Second: Keep-Alive header value sent to client.",
|
|
415
|
+
"type": "directive",
|
|
416
|
+
"module": "ngx_http_core_module"
|
|
417
|
+
},
|
|
418
|
+
"worker_processes": {
|
|
419
|
+
"signature": "worker_processes number|auto",
|
|
420
|
+
"description": "Number of worker processes. auto = number of CPU cores. Set in main context only.",
|
|
421
|
+
"type": "directive",
|
|
422
|
+
"module": "ngx_core_module"
|
|
423
|
+
},
|
|
424
|
+
"worker_connections": {
|
|
425
|
+
"signature": "worker_connections number",
|
|
426
|
+
"description": "Maximum simultaneous connections each worker can handle. Total connections = workers x connections.",
|
|
427
|
+
"type": "directive",
|
|
428
|
+
"module": "ngx_event_module"
|
|
429
|
+
},
|
|
430
|
+
"resolver": {
|
|
431
|
+
"signature": "resolver address ... [valid=time]",
|
|
432
|
+
"description": "Configure DNS resolvers for upstream, SSL stapling, etc. Example: 8.8.8.8 1.1.1.1 valid=300s;",
|
|
433
|
+
"type": "directive",
|
|
434
|
+
"module": "ngx_http_core_module"
|
|
435
|
+
},
|
|
436
|
+
"fastcgi_pass": {
|
|
437
|
+
"signature": "fastcgi_pass address",
|
|
438
|
+
"description": "Sets the address of a FastCGI server (PHP-FPM). Can be TCP or Unix socket.",
|
|
439
|
+
"type": "directive",
|
|
440
|
+
"module": "ngx_http_fastcgi_module"
|
|
441
|
+
},
|
|
442
|
+
"fastcgi_param": {
|
|
443
|
+
"signature": "fastcgi_param parameter value",
|
|
444
|
+
"description": "Sets a parameter passed to the FastCGI server. SCRIPT_FILENAME is essential for PHP.",
|
|
445
|
+
"type": "directive",
|
|
446
|
+
"module": "ngx_http_fastcgi_module"
|
|
447
|
+
},
|
|
448
|
+
"fastcgi_index": {
|
|
449
|
+
"signature": "fastcgi_index name",
|
|
450
|
+
"description": "Sets the index file name for FastCGI requests ending with /.",
|
|
451
|
+
"type": "directive",
|
|
452
|
+
"module": "ngx_http_fastcgi_module"
|
|
453
|
+
},
|
|
454
|
+
"$host": {
|
|
455
|
+
"signature": "$host",
|
|
456
|
+
"description": "Request Host header, or server_name if Host is missing. Most commonly used variable.",
|
|
457
|
+
"type": "variable",
|
|
458
|
+
"module": "ngx_http_core_module"
|
|
459
|
+
},
|
|
460
|
+
"$uri": {
|
|
461
|
+
"signature": "$uri",
|
|
462
|
+
"description": "Current (possibly rewritten) URI without query string.",
|
|
463
|
+
"type": "variable",
|
|
464
|
+
"module": "ngx_http_core_module"
|
|
465
|
+
},
|
|
466
|
+
"$request_uri": {
|
|
467
|
+
"signature": "$request_uri",
|
|
468
|
+
"description": "Original full URI with query string, as sent by the client.",
|
|
469
|
+
"type": "variable",
|
|
470
|
+
"module": "ngx_http_core_module"
|
|
471
|
+
},
|
|
472
|
+
"$remote_addr": {
|
|
473
|
+
"signature": "$remote_addr",
|
|
474
|
+
"description": "Client IP address.",
|
|
475
|
+
"type": "variable",
|
|
476
|
+
"module": "ngx_http_core_module"
|
|
477
|
+
},
|
|
478
|
+
"$scheme": {
|
|
479
|
+
"signature": "$scheme",
|
|
480
|
+
"description": "Request scheme: http or https.",
|
|
481
|
+
"type": "variable",
|
|
482
|
+
"module": "ngx_http_core_module"
|
|
483
|
+
},
|
|
484
|
+
"$args": {
|
|
485
|
+
"signature": "$args",
|
|
486
|
+
"description": "Query string arguments.",
|
|
487
|
+
"type": "variable",
|
|
488
|
+
"module": "ngx_http_core_module"
|
|
489
|
+
},
|
|
490
|
+
"$http_upgrade": {
|
|
491
|
+
"signature": "$http_upgrade",
|
|
492
|
+
"description": "Value of the Upgrade request header. Used for WebSocket proxying.",
|
|
493
|
+
"type": "variable",
|
|
494
|
+
"module": "ngx_http_core_module"
|
|
495
|
+
},
|
|
496
|
+
"$proxy_add_x_forwarded_for": {
|
|
497
|
+
"signature": "$proxy_add_x_forwarded_for",
|
|
498
|
+
"description": "X-Forwarded-For header with $remote_addr appended. Preserves the original client chain.",
|
|
499
|
+
"type": "variable",
|
|
500
|
+
"module": "ngx_http_proxy_module"
|
|
501
|
+
},
|
|
502
|
+
"$upstream_cache_status": {
|
|
503
|
+
"signature": "$upstream_cache_status",
|
|
504
|
+
"description": "Cache status: MISS, HIT, EXPIRED, BYPASS, STALE, UPDATING, REVALIDATED.",
|
|
505
|
+
"type": "variable",
|
|
506
|
+
"module": "ngx_http_upstream_module"
|
|
507
|
+
},
|
|
508
|
+
"$binary_remote_addr": {
|
|
509
|
+
"signature": "$binary_remote_addr",
|
|
510
|
+
"description": "Client IP in binary form (4 bytes for IPv4). Efficient key for limit_req_zone/limit_conn_zone.",
|
|
511
|
+
"type": "variable",
|
|
512
|
+
"module": "ngx_http_core_module"
|
|
129
513
|
}
|
|
130
514
|
}
|
|
131
515
|
}
|