Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foto Upload does not start with https #77

Closed
confile opened this issue Jul 16, 2015 · 13 comments
Closed

Foto Upload does not start with https #77

confile opened this issue Jul 16, 2015 · 13 comments

Comments

@confile
Copy link

confile commented Jul 16, 2015

Version: 1.9.9
iPhone 5 iOS 7.1.1.

I tried to upload photos my seafile private server. The library is connected with https and a valid certificate.

As you can see from the following image. The upload does not start:

image

@confile
Copy link
Author

confile commented Jul 16, 2015

The library is not encrypted.

@confile confile changed the title Foto Upload does not start Foto Upload does not start with https Jul 16, 2015
@steffimueller
Copy link

+1 I have the same problem. It also does not with with http.

@poetwang
Copy link
Member

Does the download work?

@confile
Copy link
Author

confile commented Jul 25, 2015

The download works

@confile
Copy link
Author

confile commented Jul 26, 2015

@poetwang Upload never starts even when I'm am in the same network.

@confile
Copy link
Author

confile commented Jul 26, 2015

No I was wrong with https even download does not work.

@poetwang
Copy link
Member

Does it work on web browser, download and upload?

@confile
Copy link
Author

confile commented Jul 26, 2015

Using Seafile RaspberryPi version 4.3.0. I tried on the browser when I do upload I get:

bibliotheken_-_private_seafile

When I try to download I get:

private_seafile

In summary upload und download does not work on the browser.

Upload and download only work on the Desktop Seafile client for me.

@freeplant
Copy link
Member

You haven't correctly set SERVICE_URL in ccnet.conf and FILE_SERVER_ROOT in seahub_settings.py

@confile
Copy link
Author

confile commented Jul 26, 2015

How do I find the correct values for these variables? @freeplant

@confile
Copy link
Author

confile commented Jul 26, 2015

I am using NGINX as a proxy. Here is my NGINX config for seahub:

server {
    listen 8001; # <--------------------------------------- NGINX PORT
    ssl on; # <-------------------------------------------- SSL

     ssl_certificate /etc/nginx/ssl/ssl-confile-org-unified.crt; # <--------- SSL
     ssl_certificate_key /etc/nginx/ssl/ssl-confile-org.key; # <----- SSL
     server_name home.myserver.de; # <----------------- CHANGE THIS

    add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
    server_tokens off;

    error_page 497  https://$host:$server_port$request_uri;

    location / {
        fastcgi_pass    127.0.0.1:8000;
        fastcgi_param   SCRIPT_FILENAME     $document_root$fastcgi_script_name;
        fastcgi_param   PATH_INFO           $fastcgi_script_name;

        fastcgi_param   SERVER_PROTOCOL $server_protocol;
        fastcgi_param   QUERY_STRING        $query_string;
        fastcgi_param   REQUEST_METHOD      $request_method;
        fastcgi_param   CONTENT_TYPE        $content_type;
        fastcgi_param   CONTENT_LENGTH      $content_length;
        fastcgi_param   SERVER_ADDR         $server_addr;
        fastcgi_param   SERVER_PORT         $server_port;
        fastcgi_param   SERVER_NAME         $server_name;
        fastcgi_param   HTTPS   on;
        fastcgi_param HTTP_SCHEME https;

        access_log      /var/log/nginx/seahub.access.log;
        error_log       /var/log/nginx/seahub.error.log;
    }
    location /seafhttp {
        rewrite ^/seafhttp(.*)$ $1 break;
        proxy_pass http://127.0.0.1:8082;
        client_max_body_size 0;
        proxy_connect_timeout  36000s;
        proxy_read_timeout  36000s;
    }

    location /media {
        root /home/seafile/seafile/seafile-server-latest/seahub; 
    }
}

Here is my ccnet.conf:

[General]
USER_NAME = home
ID = 123123213123123123263e99092610b5222bc7c0d77ac8
NAME = home
SERVICE_URL = https://myserver:8001

[Network]
PORT = 10001

[Client]
PORT = 13418

Here is my seahub_settings.py:

SECRET_KEY = "123456789123456789"
HTTP_SERVER_ROOT = 'https://myserver:8001'

Is there anything missing?

@confile
Copy link
Author

confile commented Jul 26, 2015

I corrected my FILE_SERVER_ROOT and set the correct SERVICE_URL:

FILE_SERVER_ROOT = 'https://www.myserver:8001'

and

FILE_SERVER_ROOT = 'https://www.myserver:8001/seafhttp'

Now upload and download works with the browser interface. But upload does not work with the ios app. Download on iOS works partially. Only the preview images are downloaded directly. When you tap on a preview to see this:

foto 26 07 15 20 34 52

Again upload does not work.

@poetwang
Copy link
Member

can not reproduce, skip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants