add client max body size to nginx config example

This commit is contained in:
Yannik Schmidt
2021-07-22 17:19:54 +02:00
parent a09e02697c
commit ca0c266eca

View File

@@ -38,13 +38,13 @@ This tool is not intended for uploading or large amounts of files, use SFTP/FTPS
server { server {
listen 443 ssl; listen 443 ssl;
location /{ location /{
proxy_pass http://localhost:5000; proxy_pass http://localhost:5000;
} }
location /upload{ location /upload{
auth_basic "Auth Message"; auth_basic "Auth Message";
auth_basic_user_file "/path/to/auth/file"; auth_basic_user_file "/path/to/auth/file";
client_max_body_size 50m; # <-- important!
proxy_pass http://localhost:5000; proxy_pass http://localhost:5000;
} }
} }