This website requires JavaScript.
Explore
Help
Register
Sign In
cookiecutter
/
cookiecutter-django
Watch
1
Star
1
Fork
0
You've already forked cookiecutter-django
mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced
2024-11-15 14:17:43 +03:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
44dc46997a
cookiecutter-django
/
{{cookiecutter.project_slug}}
/
compose
/
production
/
nginx
/
default.conf
8 lines
116 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Add option to serve media files locally using nginx (#2457) * Add option to serve media files locally using nginx * Fix nginx media location and storage issue * Fix traefik django-media typo * Add certresolver property to web-media-router * Add trailing slash in nginx configuration to avoid path traversal exploits * Remove autoindexing from nginx configuration so nginx uses its default off setting * Use nginx to serve media files if cloud provider is None * Add back warning about lack of media files without Docker or Cloud providers * Update documentation * Fix typos and rephrase Co-authored-by: Arkadiusz Ryś <arkadiusz.michal.rys@gmail.com> --------- Co-authored-by: Bruno Alla <alla.brunoo@gmail.com> Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2023-03-04 21:36:11 +03:00
server {
Update indent for nginx config file (#4260)
2023-04-05 23:32:05 +03:00
listen 80;
server_name localhost;
location /media/ {
alias /usr/share/nginx/media/;
}
Add option to serve media files locally using nginx (#2457) * Add option to serve media files locally using nginx * Fix nginx media location and storage issue * Fix traefik django-media typo * Add certresolver property to web-media-router * Add trailing slash in nginx configuration to avoid path traversal exploits * Remove autoindexing from nginx configuration so nginx uses its default off setting * Use nginx to serve media files if cloud provider is None * Add back warning about lack of media files without Docker or Cloud providers * Update documentation * Fix typos and rephrase Co-authored-by: Arkadiusz Ryś <arkadiusz.michal.rys@gmail.com> --------- Co-authored-by: Bruno Alla <alla.brunoo@gmail.com> Co-authored-by: Bruno Alla <browniebroke@users.noreply.github.com>
2023-03-04 21:36:11 +03:00
}
Reference in New Issue
Copy Permalink