Seafile 6.0.5 no HTTPS response


yesterday i´ve set up a 6.0.5 server on a raspberry pi 3 (mysql, nginx, https (self created cert)). For some reason i don´t get access to the service. With Chrome i get a “ERR_CONNECTION_CLOSED” message.

Here´s my nginx config located in /etc/nginx/sites-available/seafile.conf:

server {                                                                                                                                    
    listen 80;                                                                                                                              
    server_name #removed;                                                                                                       
    rewrite ^ https://$http_host$request_uri? permanent; # force redirect http to https                                                     
server {                                                                                                                                    
    listen 443;                                                                                                                             
    ssl on;                                                                                                                                 
    ssl_certificate /etc/nginx/ssl/cacert.pem;                                                                                              
    ssl_certificate_key /etc/nginx/ssl/privkey.pem;                                                                                         
    server_name #removed;                                                                                                       
    proxy_set_header X-Forwarded-For $remote_addr;                                                                                          
    add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";                                                             
    server_tokens off;                                                                                                                      
    location / {                                                                                                                            
        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   REMOTE_ADDR         $remote_addr;                                                                                   
        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;                                                                                    
        fastcgi_read_timeout 36000;                                                                                                         
    location /seafhttp {                                                                                                                    
        rewrite ^/seafhttp(.*)$ $1 break;                                                                                                   
        client_max_body_size 0;                                                                                                             
        proxy_connect_timeout  36000s;                                                                                                      
        proxy_read_timeout  36000s;                                                                                                         
        proxy_send_timeout  36000s;                                                                                                         
        send_timeout  36000s;                                                                                                               
    location /media {                                                                                                                       
        root /mnt/pidrive/seafile/seafile-server-latest/seahub;                                                                             

What´s wrong? Any ideas? Do you need addtional config files/logs?

I am having ERR_CONNECTION_CLOSED problem in my PC

Your configuration contains:

ssl_certificate should refer to a server certificate, NOT a root CA certificate. It looks like you are using the wrong certificate type, looking at the name cacert.pem. Use the CA certificate to sign a server certificate instead, and use this server certificate in nginx. If you have intermediate CA certificates, it is a good idea to append them to the PEM file used by nginx. See Module ngx_http_ssl_module