Created
September 25, 2020 09:12
-
-
Save mhemrg/72e5d9f544abb1ae75e07d6f433970dd to your computer and use it in GitHub Desktop.
Django + Nginx | Customize max file upload size
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| location /static { | |
| alias /usr/src/app/staticfiles; | |
| } | |
| location / { | |
| try_files $uri @django_app; | |
| client_max_body_size 10m; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment