Skip to content

Commit

Permalink
change settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin1999Stark committed Sep 2, 2024
1 parent ab47c4f commit 5c16453
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions Backend/backend/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
os.path.join(BASE_DIR, "static")
]

MEDIA_URL = '/media/'
MEDIA_URL = '/code/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
# Default primary key field type
# https://docs.djangoproject.com/en/4.2/ref/settings/#default-auto-field
Expand All @@ -161,18 +161,15 @@

CORS_ALLOWED_ORIGINS = [
"http://mac-server:5000",
"http://mac-server:8080",
"http://localhost:5000",
"http://localhost:8080",
"http://frontend:8080",
"https://foodplaner-demo.robin-stark.com"

]

CSRF_TRUSTED_ORIGINS = [
"http://mac-server:5000",
"http://mac-server:8080",
"http://localhost:5000",
"http://localhost:8080",
"http://frontend:8080",
"https://foodplaner-demo.robin-stark.com"
]

CORS_ALLOW_CREDENTIALS = True
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
backend:
build:
context: ./Backend/backend
command: gunicorn backend.wsgi:application --bind 0.0.0.0:8000
command: gunicorn backend.wsgi:application --bind 0.0.0.0:8000 --workers 17 --timeout 30
volumes:
- .:/code
- ./data/media:/code/media
Expand Down

0 comments on commit 5c16453

Please sign in to comment.