mirror of
https://github.com/FAUSheppy/python-flask-picture-factory
synced 2025-12-06 07:01:37 +01:00
add client max body size to nginx config example
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user