vault-cortex 0.10.7 → 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.
- package/dist/env.js +55 -22
- package/dist/optional-settings.js +3 -3
- 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
|
-
#
|
|
98
|
-
#
|
|
99
|
-
#
|
|
100
|
-
#
|
|
101
|
-
#
|
|
102
|
-
#
|
|
103
|
-
#
|
|
104
|
-
#
|
|
105
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
225
|
-
#
|
|
226
|
-
#
|
|
227
|
-
#
|
|
228
|
-
#
|
|
229
|
-
#
|
|
230
|
-
#
|
|
231
|
-
#
|
|
232
|
-
#
|
|
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
|
-
#
|
|
256
|
+
# TRUST_FORWARDED_HOPS=0
|
|
235
257
|
|
|
236
258
|
# Log verbosity: debug | info | warn | error (default: info).
|
|
237
259
|
LOG_LEVEL=info
|
|
@@ -250,16 +272,27 @@ LOG_RETENTION_DAYS=90
|
|
|
250
272
|
PUID=1000
|
|
251
273
|
PGID=1000
|
|
252
274
|
|
|
253
|
-
# Device name
|
|
275
|
+
# Device name the container reports to Obsidian Sync — labels its changes in the sync log.
|
|
254
276
|
DEVICE_NAME=vault-cortex
|
|
255
277
|
|
|
256
278
|
# Obsidian Sync conflict resolution: merge | conflict (default: merge).
|
|
257
279
|
# 'merge' integrates changes automatically; 'conflict' writes a separate conflict file.
|
|
258
280
|
CONFLICT_STRATEGY=merge
|
|
259
281
|
|
|
260
|
-
# Sync direction: bidirectional | pull-only |
|
|
282
|
+
# Sync direction: bidirectional | pull-only | mirror-remote (default: bidirectional).
|
|
283
|
+
# 'pull-only': server edits are kept locally but never uploaded;
|
|
284
|
+
# 'mirror-remote': server edits are undone, so the server is an exact copy.
|
|
261
285
|
SYNC_MODE=bidirectional
|
|
262
286
|
|
|
287
|
+
# Folders to leave out of sync, comma-separated — the same list as Obsidian's
|
|
288
|
+
# Sync → "Excluded folders". Empty keeps the Sync client's default (nothing excluded).
|
|
289
|
+
SYNC_EXCLUDED_FOLDERS=
|
|
290
|
+
|
|
291
|
+
# Attachment types to sync, comma-separated: image, audio, video, pdf, unsupported —
|
|
292
|
+
# the same toggles as Obsidian's Sync → "Selective sync". Empty keeps the Sync
|
|
293
|
+
# client's default.
|
|
294
|
+
SYNC_FILE_TYPES=
|
|
295
|
+
|
|
263
296
|
# Obsidian settings categories to sync into the server's .obsidian/ folder
|
|
264
297
|
# (default: the two the server reads — daily notes settings and community
|
|
265
298
|
# plugin settings such as the Tasks plugin's format; "none" disables).
|
|
@@ -69,9 +69,9 @@ const OPTIONAL_SETTINGS = [
|
|
|
69
69
|
hint: "receive changes but never push",
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
|
-
value: "
|
|
73
|
-
label: "
|
|
74
|
-
hint: "
|
|
72
|
+
value: "mirror-remote",
|
|
73
|
+
label: "Mirror remote",
|
|
74
|
+
hint: "receive changes and revert any server-side edit",
|
|
75
75
|
},
|
|
76
76
|
],
|
|
77
77
|
defaultValue: "bidirectional",
|