haiwen / seafile

High performance file syncing and sharing, with also Markdown WYSIWYG editing, Wiki, file label and other knowledge management features.
http://seafile.com/
Other
12.25k stars 1.54k forks source link

Firefox upload problem #708

Closed AdrianRibao closed 8 years ago

AdrianRibao commented 10 years ago

When uploading a file from firefox and using https, the upload fails with this message:

Error: [Exception... "<no message>" nsresult: "0x805e0006 (<unknown>)" location: "JS frame :: https://my.url/media/js/jq.min.js?t=1402119297 :: .send :: line 4" data: no]

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.

mrckndt commented 10 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.

wethinkagile commented 9 years ago

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.