Replies: 1 comment
-
Since, Kamal doesn't support path-based virtual hosting, consider hosting it on different subdomain such as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Django does not provide file serving out of the box. It's easy to solve this for static files (using whitenoise), but that leaves us lacking for serving media files. In the past, I used a nginx container alongside django, to serve those files.
Issue is: I'm not sure how to replicate the same behavior with kamal.
I was thinking of using nginx as an acessory, but how do I then route all requests to
{{host}}/media
to nginx and not django? Or better yet, is this the way to go? (I'm not looking into using S3-like services, would prefer to keep media files on the server)Beta Was this translation helpful? Give feedback.
All reactions