Closed AdrianRibao closed 8 years ago
Hey, you have to add FILE_SERVER_ROOT = 'https://YOURDOMAIN/seafhttp' and add this to your nginx-config (http://manual.seafile.com/deploy/https_with_nginx.html): location /seafhttp { rewrite ^/seafhttp(.*)$ $1 break; proxy_pass http://127.0.0.1:8082; client_max_body_size 0 } Seafile assumes that you use their sample-configs.
Flexo told only half of the story. We better do a
$ sudo emacs /home/USER/PROJECTNAME/ccnet/ccnet.conf
and change SERVICE_URL = https://www.example.com
, then save, exit and do a:
$ echo "FILE_SERVER_ROOT = 'https://YOURDOMAIN/seafhttp' >> /home/USER/PROJECTNAME/seahub_settings.py && cd /home/USER/PROJECTNAME/seafile-server-latest && ./seafile.sh stop && ./seahub.sh stop && ./seafile.sh start && ./seahub.sh start-fastcgi
Done.
When uploading a file from firefox and using https, the upload fails with this message:
Firefox blocks the upload of mixed content, because it tries to upload to http://my.url instead of https://my.url
It works ok with Chrome.