mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-17 01:49:35 -05:00
ea913c6c4b
Introduce a web-first AI helper with admin-configurable providers (Ollama or hosted OpenAI-compatible), server-side context building, and confirmed write actions. Expose the feature via session /api/ai/* endpoints and scoped /api/v1/ai/* endpoints. Harden security by requiring a strong SECRET_KEY for Docker Compose, adding optional settings encryption-at-rest (Fernet), and introducing TOTP-based 2FA plus password reset flows. Update admin UI, API docs, and install documentation.
36 lines
760 B
Plaintext
36 lines
760 B
Plaintext
# Local Testing Environment Variables
|
|
# Copy this file to .env.local-test and modify as needed
|
|
|
|
# Timezone (default: Europe/Brussels)
|
|
TZ=Europe/Brussels
|
|
|
|
# Currency (default: EUR)
|
|
CURRENCY=EUR
|
|
|
|
# Timer settings
|
|
ROUNDING_MINUTES=1
|
|
SINGLE_ACTIVE_TIMER=true
|
|
IDLE_TIMEOUT_MINUTES=30
|
|
|
|
# User management
|
|
ALLOW_SELF_REGISTER=true
|
|
ADMIN_USERNAMES=admin,testuser
|
|
|
|
# Security (CHANGE THESE FOR PRODUCTION!)
|
|
SECRET_KEY=local-test-secret-key-change-this-please-override-32plus
|
|
|
|
# Database (SQLite for local testing)
|
|
DATABASE_URL=sqlite:////data/timetracker.db
|
|
|
|
# Logging
|
|
LOG_FILE=/app/logs/timetracker.log
|
|
|
|
# Cookie settings (disabled for local testing)
|
|
SESSION_COOKIE_SECURE=false
|
|
REMEMBER_COOKIE_SECURE=false
|
|
|
|
# Flask environment
|
|
FLASK_ENV=development
|
|
FLASK_DEBUG=true
|
|
|