NoteDiscovery/config.yaml

53 lines
1.5 KiB
YAML
Raw Normal View History

2025-11-05 16:48:41 +00:00
# NoteDiscovery Configuration
# Easy to rebrand: just change these values!
app:
name: "NoteDiscovery"
tagline: "Your Self-Hosted Knowledge Base"
version: "1.0.0"
server:
host: "0.0.0.0"
port: 8000
reload: false # Set to true for development
storage:
notes_dir: "./data"
2025-11-05 16:48:41 +00:00
plugins_dir: "./plugins"
search:
enabled: true
security:
2025-11-14 13:34:19 +00:00
# Authentication settings
# Set enabled to true to require login
enabled: true
# 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-14 17:08:51 +00:00
# ⚠️ WARNING: The default hash below corresponds to password "admin"
# ⚠️ CHANGE THIS IMMEDIATELY in production!
#
2025-11-14 19:33:36 +00:00
# INSTRUCTIONS (Local):
2025-11-14 13:34:19 +00:00
# 1. Run: pip install bcrypt
# 2. Run: python generate_password.py
# 3. Enter your desired password
# 4. Copy the generated hash below
2025-11-14 17:08:51 +00:00
# 5. ALSO change secret_key above
2025-11-14 13:34:19 +00:00
# 6. Restart the application
2025-11-14 17:08:51 +00:00
#
2025-11-14 19:33:36 +00:00
# INSTRUCTIONS (Docker):
# 1. Run: docker-compose exec notediscovery python generate_password.py
# 2. Enter your desired password
# 3. Copy the generated hash below
# 4. ALSO change secret_key above
# 5. Restart: docker-compose restart
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