Major PWA and mobile UI improvements
- Fixed PWA installation on Android by correcting manifest.json icon configuration - Made UI mobile-friendly with compact layout and sticky record button - Implemented auto-translation after transcription stops - Updated branding from 'Voice Translator' to 'Talk2Me' throughout - Added reverse proxy support with ProxyFix middleware - Created diagnostic tools for PWA troubleshooting - Added proper HTTP headers for service worker and manifest - Improved mobile CSS with responsive design - Fixed JavaScript bundling with webpack configuration - Updated service worker cache versioning - Added comprehensive PWA documentation These changes ensure the app works properly as a PWA on Android devices and provides a better mobile user experience.
This commit is contained in:
54
.env.template
Normal file
54
.env.template
Normal file
@@ -0,0 +1,54 @@
|
||||
# Talk2Me Environment Configuration Template
|
||||
# Copy this file to .env and update with your values
|
||||
|
||||
# Flask Configuration
|
||||
FLASK_ENV=production
|
||||
SECRET_KEY=your-secret-key-here-change-this
|
||||
|
||||
# Security Settings for HTTPS/Reverse Proxy
|
||||
SESSION_COOKIE_SECURE=true
|
||||
SESSION_COOKIE_SAMESITE=Lax
|
||||
PREFERRED_URL_SCHEME=https
|
||||
|
||||
# TTS Server Configuration
|
||||
TTS_SERVER_URL=http://localhost:5050/v1/audio/speech
|
||||
TTS_API_KEY=your-tts-api-key-here
|
||||
|
||||
# Whisper Configuration
|
||||
WHISPER_MODEL_SIZE=base
|
||||
WHISPER_DEVICE=auto
|
||||
|
||||
# Ollama Configuration
|
||||
OLLAMA_HOST=http://localhost:11434
|
||||
OLLAMA_MODEL=gemma3:27b
|
||||
|
||||
# Admin Configuration
|
||||
ADMIN_TOKEN=your-admin-token-here-change-this
|
||||
|
||||
# CORS Configuration (comma-separated)
|
||||
CORS_ORIGINS=https://talk2me.dr74.net,http://localhost:5000
|
||||
ADMIN_CORS_ORIGINS=https://talk2me.dr74.net
|
||||
|
||||
# Rate Limiting
|
||||
RATE_LIMIT_ENABLED=true
|
||||
RATE_LIMIT_STORAGE_URL=memory://
|
||||
|
||||
# Feature Flags
|
||||
ENABLE_PUSH_NOTIFICATIONS=true
|
||||
ENABLE_OFFLINE_MODE=true
|
||||
ENABLE_STREAMING=true
|
||||
ENABLE_MULTI_SPEAKER=true
|
||||
|
||||
# Logging
|
||||
LOG_LEVEL=INFO
|
||||
LOG_FILE=logs/talk2me.log
|
||||
|
||||
# Upload Configuration
|
||||
UPLOAD_FOLDER=/tmp/talk2me_uploads
|
||||
MAX_CONTENT_LENGTH=52428800
|
||||
MAX_AUDIO_SIZE=26214400
|
||||
MAX_JSON_SIZE=1048576
|
||||
|
||||
# Worker Configuration (for Gunicorn)
|
||||
WORKER_CONNECTIONS=1000
|
||||
WORKER_TIMEOUT=120
|
Reference in New Issue
Block a user