nginxreverse-proxyseafile-server

Seafile file upload does not work, even after setting the "FILE_SERVER_ROOT" variable


I'm trying to get Seafile running behind a nginx reversed proxy. I followed this: http://manual.seafile.com/deploy/deploy_with_nginx.html along with this: http://manual.seafile.com/deploy/https_with_nginx.html.

My configuration is like follows:

So now, when I delete my old seahub_settings.pyc, start seahub (in fastcgi mode, of course), point the browser to my library and try to upload something, I get the following error message in the F12 developer console:

main.ad03aea1e16e.js:215 Mixed Content: The page at 'https://cloud.mydomain.tld/#my-libs/lib/12345678-1234-1234-1234-123456789012' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://cloud.mydomain.tld:8082/upload-aj/12345678-1234-1234-1234-123456789012'. This request has been blocked; the content must be served over HTTPS.
    send @ main.ad03aea1e16e.js:215

This means, that seahub is still trying to connect to the "old" upload service, which of course does not work anymore. Until now, I did not find out any solution for this problem.


Solution

  • I just found your question by having the same problem.

    That's easy : there's a constance_config in seahub-db (with MySQL, same thing apply with sqlite) that records configuration and overwrite the plain config files.

    This configuration can be modified from the admin console (upper right) or you can simply truncate this table to get it re-generated.

    It's a new 'feature' starting from 5.0.0 (http://manual.seafile.com/config/index.html).

    Regards, Julien