-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
93 lines (79 loc) · 3.85 KB
/
Copy path.env.example
File metadata and controls
93 lines (79 loc) · 3.85 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# =============================================================================
# BookDock - Environment Configuration
# =============================================================================
# Copy this file to .env and adjust values as needed.
# All services run in a single container (SQLite + NestJS + Piper TTS).
# =============================================================================
# -----------------------------------------------------------------------------
# App / API
# -----------------------------------------------------------------------------
PORT=8088
API_BASE_URL=http://localhost:8088
CORS_ORIGINS=*
# -----------------------------------------------------------------------------
# Security
# -----------------------------------------------------------------------------
# IMPORTANT: Change this in production!
JWT_SECRET=change-me-to-a-random-string-in-production
JWT_EXPIRY=7d
JWT_REFRESH_EXPIRY=30d
# -----------------------------------------------------------------------------
# Database (SQLite - single file, no external DB needed)
# -----------------------------------------------------------------------------
# The database file is persisted via the bookdock-db Docker volume.
# Default location inside container: /data/db/bookdock.db
# DATABASE_URL=file:/data/db/bookdock.db
# -----------------------------------------------------------------------------
# Data Paths (mapped via Docker volumes)
# -----------------------------------------------------------------------------
# Host paths for e-books, audio output, and local sources.
# On NAS devices, set these to your shared folders.
#
# NAS_EBOOK_PATH accepts either a single path or a colon/comma-
# separated list of *container* paths the server scans. The
# matching *host* paths must be mounted into each container path
# separately — see NAS_EBOOK_PATHS_0/1 below.
# NAS_EBOOK_PATH=/mnt/nas1/books
# NAS_EBOOK_PATH=/data/ebooks,/data/ebooks2
# NAS_EBOOK_PATH=/data/ebooks:/data/ebooks2
NAS_EBOOK_PATH=./data/ebooks
# When NAS_EBOOK_PATH contains multiple container paths, set one
# host path per root. Order matters: index 0 maps to the first
# path in NAS_EBOOK_PATH, etc. Unset indices fall back to a
# `./data/ebooks<N>` directory so a stock checkout still works.
# NAS_EBOOK_PATHS_0=/mnt/nas1/books
# NAS_EBOOK_PATHS_1=/mnt/nas2/more-books
# NAS_EBOOK_PATHS_0=./data/ebooks
# NAS_EBOOK_PATHS_1=./data/ebooks2
NAS_AUDIO_PATH=./data/audio
NAS_SOURCE_PATH=./data/sources
NAS_DB_PATH=./data/db
# Optional: 封面图片缓存独立存储路径(未设置时回退到 NAS_EBOOK_PATH[0]/covers)
# CACHE_PATH=./data/cache
# -----------------------------------------------------------------------------
# Frontend (desktop / mobile builds)
# -----------------------------------------------------------------------------
VITE_API_BASE_URL=http://localhost:8088/api
# Optional: override TTS server URL (normally internal, only change for external TTS)
# VITE_TTS_SERVER_URL=http://localhost:8088/tts
# Optional: Analytics
# VITE_ANALYTICS_ID=
# -----------------------------------------------------------------------------
# TTS Providers
# -----------------------------------------------------------------------------
# Default provider used when a request omits `provider`. Edge TTS works
# out of the box (no key required). To enable the Mi (Xiaomi) provider,
# set both MI_TTS_ENDPOINT and MI_TTS_API_KEY. These are read by the
# Python tts-service and shared across all users.
# TTS_DEFAULT_PROVIDER=edge
TTS_SERVICE_URL=http://localhost:5000
TTS_AUDIO_CACHE_DIR=./data/audio
# TTS_PORT=5000
# Edge TTS — public, no key needed
EDGE_TTS_ENABLED=1
# Mi / Xiaomi TTS — fill in to enable
# Get the endpoint & API key from your Xiaomi Cloud / Mi AI integration.
# Primary (recommended):
TTS_MIMO_API_TOKEN=sk-xxxxxxxxxxxxxxxxxxxx
TTS_MIMO_MODEL=mimo-v2.5-tts
TTS_MIMO_ENDPOINT=https://api.xiaomimimo.com/v1