Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Nginx to serve Django media files #771

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

YanZhylavy
Copy link
Collaborator

Modified the Nginx configuration to directly serve Django media files, as Django does not serve them in production mode. The location /media/ block was updated, and a volume mount for forum_media was added to the Nginx container. The unnecessary collectstatic command was also removed from django_cd_dev.

…e media files, add a volume mount for 'forum_media' to the Nginx container, delete redundant collectstatic command from CI/CD django_cd_dev
@YanZhylavy YanZhylavy self-assigned this Sep 9, 2024
@YanZhylavy YanZhylavy changed the title Add a location block in the Nginx configuration file to directly serv… Configure Nginx to serve Django media files Sep 9, 2024
@YanZhylavy YanZhylavy merged commit b8524e2 into develop Sep 9, 2024
4 checks passed
@YanZhylavy YanZhylavy deleted the #770ConfigureNginxToServeDjangoMediaFiles branch September 9, 2024 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants