Dear Lingtao,
I found on git how to implement (
https://github.com/haiwen/seafile/wiki/Deploy-Seafile-Web-with-nginx-apache#wiki-Deploy_Httpserver_behind_NginxApache)
I implemented it and I got errors in few case, failed upload from the seafile android application.
I investigated the problem and it appears that nginx settings "client_max_body_size" is by default 1m.
If we don't edit then you will get error message HTTP error code 413 ("Request Entity Too Large") if the file you want to upload is >1m
I edit in the wiki and add the following entry:
location /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass https://127.0.0.1:8082;
client_max_body_size 0;
}nginx settings "client_max_body_size" is by default 1m.
Uploading a file bigger than this limit will give you an error message HTTP error code 413 ("Request Entity Too Large").
You should use 0 to disable this feature or write the same value than
for the parameter max_upload_size in section [httpserver] of
/seafile/seafile-data/seafile.conf
Regards,
Renaud Dubois