sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
Use NGINX to serve the media files on CapRover for a Django project.
To give a brief overview, everything in CapRover is in a container, including NGINX, so no container can access other container data. But if you want to serve your media files (this will work the same for static files), NGINX needs to be able to access these files. Fortunately, the NGINX CapRover container provides a folder on the host that it can read and can be shared with other containers. So, basically, what you need to do is tell your Django app to write the media files in this shared folder so that NGINX can read them.
# Django media settings
STORAGES = {
"BACKEND": "django.core.files.storage.FileSystemStorage",