2025-11-05 16:48:41 +00:00
|
|
|
# NoteDiscovery Configuration
|
|
|
|
|
|
|
|
|
|
app:
|
|
|
|
|
name: "NoteDiscovery"
|
2025-12-15 14:45:10 +00:00
|
|
|
# Tagline is now localized - see locales/*.json files (app.tagline key)
|
2025-11-05 16:48:41 +00:00
|
|
|
|
|
|
|
|
server:
|
|
|
|
|
host: "0.0.0.0"
|
|
|
|
|
port: 8000
|
|
|
|
|
reload: false # Set to true for development
|
|
|
|
|
|
2025-11-25 15:41:08 +00:00
|
|
|
# CORS (Cross-Origin Resource Sharing) configuration
|
|
|
|
|
# For self-hosted use, "*" is fine. For production, specify allowed domains.
|
|
|
|
|
# Examples: ["http://localhost:8000", "https://yourdomain.com"]
|
|
|
|
|
allowed_origins: ["*"]
|
|
|
|
|
|
|
|
|
|
# Debug mode - shows detailed error messages (DISABLE in production!)
|
|
|
|
|
debug: false
|
|
|
|
|
|
2025-11-05 16:48:41 +00:00
|
|
|
storage:
|
2025-11-15 11:58:38 +00:00
|
|
|
notes_dir: "./data"
|
2025-11-05 16:48:41 +00:00
|
|
|
plugins_dir: "./plugins"
|
|
|
|
|
|
|
|
|
|
search:
|
|
|
|
|
enabled: true
|
|
|
|
|
|
2025-11-25 15:41:08 +00:00
|
|
|
authentication:
|
2025-11-14 13:34:19 +00:00
|
|
|
# Authentication settings
|
|
|
|
|
# Set enabled to true to require login
|
2025-12-15 14:45:10 +00:00
|
|
|
enabled: true
|
2025-11-14 13:34:19 +00:00
|
|
|
|
2025-11-25 16:39:43 +00:00
|
|
|
# ⚠️ SECURITY WARNING: Change these values before exposing to the internet!
|
|
|
|
|
# Default values below are for LOCAL TESTING ONLY
|
|
|
|
|
|
2025-11-14 13:34:19 +00:00
|
|
|
# Session secret key - CHANGE THIS TO A RANDOM STRING!
|
|
|
|
|
# Generate with: 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
|
2025-11-25 16:39:43 +00:00
|
|
|
# ⚠️ Default password is "admin" - CHANGE THIS for production!
|
2025-11-14 17:08:51 +00:00
|
|
|
password_hash: "$2b$12$t/6PGExFzdpU2PUta0iVY.eDQwvu63kH.c/d4bEnnHaQ5CspH1yrG" # Default: "admin"
|
2025-11-14 13:34:19 +00:00
|
|
|
|
|
|
|
|
# Session expiry in seconds (default: 7 days)
|
|
|
|
|
session_max_age: 604800
|
2025-11-05 16:48:41 +00:00
|
|
|
|