Seafile httpserver uses a non-standard http port - upload blocked by company proxy

883 views
Skip to first unread message

Renaud Dubois

unread,
Jul 21, 2013, 4:49:37 PM7/21/13
to sea...@googlegroups.com
Dear,

As the seafile httpserver s using a non-standard http(s) port, TCP/8082 by default, it's causing issue on most of company proxy to upload files.
The browse of files via the webinterface is working fine but the upload of files is blocked.
1/ Is there a way to avoid this issue ?

I was thinking to use the port TCP/80 (HTTP) that would be more standard.
My setup is based on Nginx with HTTPS.
2/ Is there a way to use the same port (TCP/443) used by nginx for the httpserver ?
I have a bunch of free public ip, so we could imagine to use another ip address but it's maybe not a good idea..

Thx in advance for your answer

Regards,
Renaud

Lingtao Pan

unread,
Jul 21, 2013, 8:16:53 PM7/21/13
to sea...@googlegroups.com
You can use Nginx proxy in front of httpserver. But with this approach, you will not be able to see the upload progress.

We are solving this problem now by using HTML5 technology and showing progress without the help of server. This feature will be published in our next version.

renaud...@ofep.be

unread,
Jul 23, 2013, 8:47:40 AM7/23/13
to sea...@googlegroups.com
Dear Lingtao,
OK thank you for your answer.

Renaud Dubois

unread,
Jul 31, 2013, 4:04:25 AM7/31/13
to sea...@googlegroups.com
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

Lingtao Pan

unread,
Jul 31, 2013, 9:01:36 PM7/31/13
to sea...@googlegroups.com
Thank you very much!
Reply all
Reply to author
Forward
0 new messages