Repository navigation
Expand file tree
/
Copy pathexample.env
More file actions
67 lines (59 loc) · 2.92 KB
/
Copy pathexample.env
File metadata and controls
67 lines (59 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
DATA_DIR=/app/data
PORT=14335
# Schedule times and date-only retention boundaries use this timezone.
TZ=UTC
# Optional reverse-proxy subpath. Empty means serving at the domain root.
# Example: NMEM_SNAP_BASE_PATH=/your-prefix
# Configure the proxy to preserve this prefix when forwarding to the app.
# If OIDC is enabled, the redirect URL must include the same prefix:
# NMEM_SNAP_OIDC_REDIRECT_URL=https://example.com/your-prefix/auth/oidc/callback
NMEM_SNAP_BASE_PATH=
# Database options: sqlite (default), postgres, mysql.
#
# SQLite: leave NMEM_SNAP_DATABASE_DSN empty to use DATA_DIR/data.db, or set an explicit DSN.
NMEM_SNAP_DATABASE_TYPE=sqlite
NMEM_SNAP_DATABASE_DSN=
# NMEM_SNAP_DATABASE_DSN=file:/app/data/data.db?cache=shared&_pragma=foreign_keys(1)&_pragma=journal_mode(WAL)&_pragma=synchronous(NORMAL)&_pragma=busy_timeout(10000)
#
# PostgreSQL example. Uncomment the postgres service in docker-compose.yml before using this.
# NMEM_SNAP_DATABASE_TYPE=postgres
# NMEM_SNAP_DATABASE_DSN=postgres://nowledge_mem_snap:nowledge_mem_snap_password@postgres:5432/nowledge_mem_snap?sslmode=disable
#
# MySQL/MariaDB example. Uncomment the mysql service in docker-compose.yml before using this.
# NMEM_SNAP_DATABASE_TYPE=mysql
# NMEM_SNAP_DATABASE_DSN=nowledge_mem_snap:nowledge_mem_snap_password@tcp(mysql:3306)/nowledge_mem_snap?parseTime=true&charset=utf8mb4&loc=Local
# Optional bootstrap. If omitted, use the setup wizard.
# NMEM_SNAP_ADMIN_USERNAME=admin
# NMEM_SNAP_ADMIN_PASSWORD=change-me
# NMEM_SNAP_SESSION_SECRET=change-this-session-secret
# Default local Nowledge Mem API source.
# NMEM_API_URL=http://host.docker.internal:14242
# NMEM_API_KEY=nmem_xxx
# Directory sources are disabled unless roots are explicitly listed.
# Format: root-key=/path/inside/container,another-root=/path/inside/container2
# `root-key` is the stable name shown in the UI and saved with directory sources.
# It does not need to match a Docker named volume or host directory name.
# The path after `=` must be the container path from the right side of the compose mount.
#
# Example 1: compose mount `/data:/app/data`
# NMEM_SNAP_ALLOWED_SOURCE_ROOTS=app-data=/app/data
#
# Example 2: compose mount `/data:/data`
# NMEM_SNAP_ALLOWED_SOURCE_ROOTS=host-data=/data
#
# Example 3: optional official Nowledge Mem mounts from docker-compose.yml
# NMEM_SNAP_ALLOWED_SOURCE_ROOTS=mem-data=/mem-data,mem-config=/mem-config
# Optional OIDC.
# NMEM_SNAP_OIDC_ENABLED=true
# NMEM_SNAP_OIDC_ISSUER_URL=https://issuer.example.com
# NMEM_SNAP_OIDC_CLIENT_ID=nowledge-mem-snap
# NMEM_SNAP_OIDC_CLIENT_SECRET=secret
# NMEM_SNAP_OIDC_REDIRECT_URL=http://localhost:14335/auth/oidc/callback
# NMEM_SNAP_OIDC_ALLOWED_DOMAINS=example.com
# Rotating file logs. Use NMEM_SNAP_LOG_FILE=stdout to disable file logging.
NMEM_SNAP_LOG_LEVEL=info
NMEM_SNAP_LOG_FILE=/app/data/logs/nowledge-mem-snap.log
NMEM_SNAP_LOG_MAX_SIZE_MB=20
NMEM_SNAP_LOG_MAX_BACKUPS=7
NMEM_SNAP_LOG_MAX_AGE_DAYS=30
NMEM_SNAP_LOG_COMPRESS=true