vault-cortex 0.11.0 → 0.12.0

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.
Files changed (2) hide show
  1. package/dist/env.js +42 -20
  2. package/package.json +1 -1
package/dist/env.js CHANGED
@@ -94,17 +94,28 @@ MEMORY_DIR=About Me
94
94
  # Host port to expose (default: 8000).
95
95
  PORT=8000
96
96
 
97
- # Client-IP trust for OAuth rate limiting and logs (defaults shown).
98
- # With nothing in front of the server, leave both untouched — each visitor
99
- # is identified by their own connection, and faked Forwarded/X-Forwarded-For
100
- # headers are ignored.
101
- # With a proxy or tunnel you control in front (Caddy, nginx, Cloudflare
102
- # Tunnel), set TRUST_PROXY_HOPS=1 so visitors are told apart by their real
103
- # IP — otherwise they all share one rate-limit budget.
104
- # Set TRUST_FORWARDED_HEADER=true only if the proxy reports each visitor's
105
- # IP in the RFC 7239 Forwarded header (e.g. AWS API Gateway).
97
+ # These two settings choose the client IP used for OAuth rate limiting and
98
+ # logs (defaults shown below). Without the right values, every visitor
99
+ # behind a proxy shares one rate-limit budget. TRUST_PROXY_HOPS counts the
100
+ # proxies you control that write X-Forwarded-For; TRUST_FORWARDED_HOPS
101
+ # counts the ones that write the RFC 7239 Forwarded header
102
+ # (https://www.rfc-editor.org/rfc/rfc7239), and 0 ignores that header.
103
+ #
104
+ # What sits in front of the server TRUST_PROXY_HOPS TRUST_FORWARDED_HOPS Client IP is
105
+ # Nothing (default) 0 0 the visitor (socket peer)
106
+ # A proxy or tunnel you control 1 0 the visitor (X-Forwarded-For)
107
+ # (Caddy, nginx, Cloudflare Tunnel)
108
+ # A proxy that reports visitors in 1 1 the visitor (Forwarded)
109
+ # Forwarded (e.g. AWS API Gateway)
110
+ # A CDN in front of that proxy, and 1 2 the visitor (Forwarded)
111
+ # the CDN is the only way to reach it
112
+ #
113
+ # When the Forwarded header is read (TRUST_FORWARDED_HOPS above 0), it wins
114
+ # and TRUST_PROXY_HOPS is not consulted; TRUST_PROXY_HOPS is the fallback
115
+ # when that header is ignored or absent. Faked headers from visitors are
116
+ # ignored in every row — only the counted proxies are trusted.
106
117
  # TRUST_PROXY_HOPS=0
107
- # TRUST_FORWARDED_HEADER=false
118
+ # TRUST_FORWARDED_HOPS=0
108
119
 
109
120
  # Log verbosity: debug | info | warn | error (default: info).
110
121
  LOG_LEVEL=info
@@ -221,17 +232,28 @@ MEMORY_DIR=About Me
221
232
  # Host port to expose (default: 8000).
222
233
  PORT=8000
223
234
 
224
- # Client-IP trust for OAuth rate limiting and logs (defaults shown).
225
- # With nothing in front of the server, leave both untouched — each visitor
226
- # is identified by their own connection, and faked Forwarded/X-Forwarded-For
227
- # headers are ignored.
228
- # With a proxy or tunnel you control in front (Caddy, nginx, Cloudflare
229
- # Tunnel), set TRUST_PROXY_HOPS=1 so visitors are told apart by their real
230
- # IP — otherwise they all share one rate-limit budget.
231
- # Set TRUST_FORWARDED_HEADER=true only if the proxy reports each visitor's
232
- # IP in the RFC 7239 Forwarded header (e.g. AWS API Gateway).
235
+ # These two settings choose the client IP used for OAuth rate limiting and
236
+ # logs (defaults shown below). Without the right values, every visitor
237
+ # behind a proxy shares one rate-limit budget. TRUST_PROXY_HOPS counts the
238
+ # proxies you control that write X-Forwarded-For; TRUST_FORWARDED_HOPS
239
+ # counts the ones that write the RFC 7239 Forwarded header
240
+ # (https://www.rfc-editor.org/rfc/rfc7239), and 0 ignores that header.
241
+ #
242
+ # What sits in front of the server TRUST_PROXY_HOPS TRUST_FORWARDED_HOPS Client IP is
243
+ # Nothing (default) 0 0 the visitor (socket peer)
244
+ # A proxy or tunnel you control 1 0 the visitor (X-Forwarded-For)
245
+ # (Caddy, nginx, Cloudflare Tunnel)
246
+ # A proxy that reports visitors in 1 1 the visitor (Forwarded)
247
+ # Forwarded (e.g. AWS API Gateway)
248
+ # A CDN in front of that proxy, and 1 2 the visitor (Forwarded)
249
+ # the CDN is the only way to reach it
250
+ #
251
+ # When the Forwarded header is read (TRUST_FORWARDED_HOPS above 0), it wins
252
+ # and TRUST_PROXY_HOPS is not consulted; TRUST_PROXY_HOPS is the fallback
253
+ # when that header is ignored or absent. Faked headers from visitors are
254
+ # ignored in every row — only the counted proxies are trusted.
233
255
  # TRUST_PROXY_HOPS=0
234
- # TRUST_FORWARDED_HEADER=false
256
+ # TRUST_FORWARDED_HOPS=0
235
257
 
236
258
  # Log verbosity: debug | info | warn | error (default: info).
237
259
  LOG_LEVEL=info
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vault-cortex",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "Set up a Vault Cortex MCP server for your Obsidian vault in one command: npx vault-cortex@latest init",
5
5
  "license": "MIT",
6
6
  "type": "module",