52 lines
1.9 KiB
YAML
52 lines
1.9 KiB
YAML
# NoteDiscovery Configuration
|
|
# Easy to rebrand: just change these values!
|
|
|
|
app:
|
|
name: "NoteDiscovery"
|
|
tagline: "Your Self-Hosted Knowledge Base"
|
|
|
|
server:
|
|
# CORS (Cross-Origin Resource Sharing) configuration
|
|
# For self-hosted use, "*" is fine. For production, specify allowed domains.
|
|
# Examples: ["http://localhost:8000", "https://yourdomain.com"]
|
|
# CORS (跨域资源共享) 配置
|
|
# 对于自托管使用,"*" 即可。对于生产环境,请指定允许的域名。
|
|
# 例如: ["http://localhost:8000", "https://yourdomain.com"]
|
|
allowed_origins: ["*"]
|
|
|
|
storage:
|
|
notes_dir: "./data"
|
|
plugins_dir: "./plugins"
|
|
|
|
search:
|
|
enabled: true
|
|
|
|
authentication:
|
|
# Authentication settings
|
|
# 身份验证设置
|
|
# Set enabled to true to require login
|
|
# 将 enabled 设置为 true 以要求登录
|
|
enabled: true
|
|
|
|
# ⚠️ SECURITY WARNING: Change these values before exposing to the internet!
|
|
# Default values below are for LOCAL TESTING ONLY
|
|
|
|
# Session secret key - CHANGE THIS TO A RANDOM STRING!
|
|
# Generate with: python -c "import secrets; print(secrets.token_hex(32))"
|
|
# ⚠️ 安全警告: 在暴露到互联网之前更改这些值!
|
|
# 以下默认值仅用于本地测试!
|
|
|
|
# 会话密钥 - 将此更改为随机字符串!
|
|
# 使用以下命令生成: python -c "import secrets; print(secrets.token_hex(32))"
|
|
secret_key: "change_this_to_a_random_secret_key_in_production"
|
|
|
|
# Password hash - Generate with: python generate_password.py
|
|
# ⚠️ Default password is "admin" - CHANGE THIS for production!
|
|
# 密码哈希 - 进入容器后使用以下命令生成: python generate_password.py
|
|
# ⚠️ 默认密码是 "admin" - 在生产环境中请更改此值!
|
|
password_hash: "$2b$12$t/6PGExFzdpU2PUta0iVY.eDQwvu63kH.c/d4bEnnHaQ5CspH1yrG"
|
|
|
|
# Session expiry in seconds (default: 7 days)
|
|
# 会话过期时间 (秒) (默认: 7 天)
|
|
session_max_age: 604800
|