- Automatic browser geolocation capture on event creation - Reverse geocoding via Nominatim API for place names - Full-text search with SQLite FTS5 - Calendar view for browsing past entries - DateNavigator component for day navigation - SearchModal with Ctrl+K shortcut - QuickAddWidget with Ctrl+J shortcut - Starlight documentation site with GitHub Pages deployment - Multiple AI provider support (Groq, OpenAI, Anthropic, Ollama, LM Studio) - Multi-user registration support BREAKING: Events now include latitude/longitude/placeName fields
52 lines
1.8 KiB
Plaintext
52 lines
1.8 KiB
Plaintext
# =============================================================================
|
|
# DearDiary Configuration
|
|
# =============================================================================
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Database (SQLite, PostgreSQL, or MySQL)
|
|
# -----------------------------------------------------------------------------
|
|
DATABASE_URL="file:./data/deardiary.db"
|
|
|
|
# Example PostgreSQL:
|
|
# DATABASE_URL="postgresql://postgres:password@db:5432/deardiary"
|
|
|
|
# Example MySQL:
|
|
# DATABASE_URL="mysql://root:password@localhost:3306/deardiary"
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Application
|
|
# -----------------------------------------------------------------------------
|
|
# App name displayed in UI
|
|
APP_NAME="DearDiary"
|
|
|
|
# App version
|
|
VERSION="0.1.0"
|
|
|
|
# Server port
|
|
PORT="3000"
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Security
|
|
# -----------------------------------------------------------------------------
|
|
# JWT secret for authentication tokens (REQUIRED in production)
|
|
JWT_SECRET="change-this-to-a-random-string-in-production"
|
|
|
|
# CORS origin (use specific domain in production, e.g., "https://yourapp.com")
|
|
CORS_ORIGIN="*"
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# User Management
|
|
# -----------------------------------------------------------------------------
|
|
# Enable/disable user registration ("true" or "false")
|
|
REGISTRATION_ENABLED="false"
|
|
|
|
# Default admin user (auto-created on startup if doesn't exist)
|
|
DEFAULT_USER_EMAIL="admin@localhost"
|
|
DEFAULT_USER_PASSWORD="changeme123"
|
|
|
|
# -----------------------------------------------------------------------------
|
|
# Storage
|
|
# -----------------------------------------------------------------------------
|
|
# Media storage directory
|
|
MEDIA_DIR="./data/media"
|