Skip to content

Instantly share code, notes, and snippets.

View aimedey19's full-sized avatar
💻
Code, Documentation

Aimé An-Nyong DEGBEY aimedey19

💻
Code, Documentation
View GitHub Profile

Media Setup for CapRover NGINX and Django

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",
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active May 8, 2025 07:25
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.