mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-15 22:27:05 +03:00
06369bfd4c
* 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>
8 lines
110 B
Plaintext
8 lines
110 B
Plaintext
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
location /media/ {
|
|
alias /usr/share/nginx/media/;
|
|
}
|
|
}
|