NGINX: Added a limit to size of an uploaded file

Without this, the web server would give a HTTP error 413.
This commit is contained in:
Ilya Prokopenko 2021-10-13 08:11:35 +07:00 committed by GitHub
parent 42108cf922
commit a6266c0e10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,6 +15,8 @@ server {
server_name domain.tld; server_name domain.tld;
root /opt/chandler/htdocs; root /opt/chandler/htdocs;
client_max_body_size 100m;
ssl_certificate /path/to/fullchain.pem; ssl_certificate /path/to/fullchain.pem;
ssl_certificate_key /path/to/privkey.pem; ssl_certificate_key /path/to/privkey.pem;