Fix CORS configuration for PWA offline caching
- Add CORS_ALLOWED_ORIGINS environment variable support in Django settings - Update docker-compose.yml to include CORS origins (HTTP, HTTPS, custom domain) - Add comprehensive PWA offline debugging guide
This commit is contained in:
parent
446125cc76
commit
0be38ca945
3 changed files with 381 additions and 14 deletions
|
|
@ -4,11 +4,11 @@ services:
|
|||
soundwave:
|
||||
container_name: soundwave
|
||||
# Option 1: Pull from GitHub Container Registry (recommended for users)
|
||||
#image: ghcr.io/aiulian25/soundwave:latest
|
||||
# image: ghcr.io/aiulian25/soundwave:main
|
||||
# Option 2: Build locally (uncomment if pulling fails or for development)
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "8889:8888"
|
||||
volumes:
|
||||
|
|
@ -24,6 +24,7 @@ services:
|
|||
- REDIS_HOST=soundwave-redis
|
||||
- TZ=UTC
|
||||
- ES_URL=http://soundwave-es:9200
|
||||
- CORS_ALLOWED_ORIGINS=http://localhost:8889,https://localhost:8889,https://sound.iulian.uk
|
||||
depends_on:
|
||||
- soundwave-es
|
||||
- soundwave-redis
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue