soundwave/.env.example
Iulian 9bdce32219 Fix CORS configuration for PWA offline caching
- Add CORS_ALLOWED_ORIGINS environment variable support in Django settings
- Use environment variable in docker-compose.yml (no hardcoded domains)
- Update .env.example with CORS configuration documentation
- Add comprehensive PWA offline debugging guide

SECURITY: Private domains should be set in local .env file, not in repo
2025-12-24 01:26:00 +00:00

26 lines
850 B
Text

# SoundWave Configuration
SW_HOST=http://localhost:8889
SW_USERNAME=admin
SW_PASSWORD=soundwave
ELASTIC_PASSWORD=soundwave
REDIS_HOST=soundwave-redis
ES_URL=http://soundwave-es:9200
TZ=UTC
# CORS Configuration - Add your custom domains here (comma-separated)
# Default: http://localhost:8889,https://localhost:8889
# Example with custom domain: http://localhost:8889,https://localhost:8889,https://yourdomain.com
CORS_ALLOWED_ORIGINS=http://localhost:8889,https://localhost:8889
# Optional settings
SW_AUTO_UPDATE_YTDLP=true
DJANGO_DEBUG=false
# Last.fm API (for metadata and artwork)
# Register at: https://www.last.fm/api/account/create
LASTFM_API_KEY=6220a784c283f5df39fbf5fd9d9ffeb9
LASTFM_API_SECRET=
# Fanart.tv API (for high quality artwork)
# Register at: https://fanart.tv/get-an-api-key/
FANART_API_KEY=73854834d14a5f351bb2233fc3c9d755