🔧 (backend) add MEDIA_BASE_URL setting
The frontend need to know the base url for the media files, so we need to add a new setting to the backend, in order to expose this value to the frontend. If the setting is not defined, the frontend current domain will be used as the base url. In production this setting do not need to be defined since we have nginx capturing the media requests, but in development we need to define it to target the nginx server.
Showing
- env.d/development/common.dist 1 addition, 0 deletionsenv.d/development/common.dist
- src/backend/core/api/viewsets.py 1 addition, 0 deletionssrc/backend/core/api/viewsets.py
- src/backend/core/tests/test_api_config.py 9 additions, 2 deletionssrc/backend/core/tests/test_api_config.py
- src/backend/impress/settings.py 3 additions, 0 deletionssrc/backend/impress/settings.py
Loading
Please register or sign in to comment