Nextcloud and Collabora about HTTPS communication issues

Hello everyone, I configure nextcloud and collabora via docker.
I use nginx reverse proxy to let nextcloud access via HTTPS. So, I want to know, is I configuring https for Nextcloud now? When I set up the collcbora connection, he will appear "Saved with error: Collabora Online should use the same protocol as the server installation.

I have enabled an HTTPS connection to collabora and can log in to the console.


I feel that it is a problem with nextcloud. Ask how to judge whether Nextcloud uses HTTPS.

I am a newbie, thank you in advance for your answers. (Thanks google translation)

Do you have a reverse proxy in front of nextcloud and collabora? Using a reverse proxy is the preferred way to configure nextcloud docker for https (a guide is available on the docker project page of nextcloud). Without a reverse proxy, as far as I know, you have to change the configuration of the inbuild ngnix server of nextcloud. I have never done this.

Florian

First of all, thank you for your reply.

I will list everything I have done.

one.

docker run -d -p 8080:80 nextcloud
docker run -t -d -p 9980:9980 -e "domain=office\.domainl\.cn"  -e "username=admin" -e "password=admin" -e "LC_CTYPE: en_US.UTF-8"  --cap-add MKNOD collabora/code

two

Nginx configuration

/etc/nginx/conf.d/cloud.domain.cn.conf

   server {
   listen 443 ssl http2;
   server_name cloud.domian.cn;

   ssl on;
   ssl_certificate /root/SSLkey/cloud.xxx.crt;
   ssl_certificate_key /root/SSLkey/cloud.xxx.key;
  
   add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
   add_header Content-Security-Policy "default-src 'self'";
   client_max_body_size 10G;
   location / {
       proxy_redirect off;
       proxy_pass http://127.0.0.1:8080;
       proxy_set_header Host $http_host;
   }
   location = /.htaccess {
       return 404;
   }

}

/etc/nginx/conf/d/office.domain.cn.conf

server {
listen       443 ssl;
server_name  office.raphel.cn;

ssl_certificate /root/SSLkey/1759867_office.raphel.cn.pem;
ssl_certificate_key /root/SSLkey/1759867_office.raphel.cn.key;

# static files
location ^~ /loleaflet {
    proxy_pass https://localhost:9980;
    proxy_set_header Host $http_host;
}

# WOPI discovery URL
location ^~ /hosting/discovery {
    proxy_pass https://localhost:9980;
    proxy_set_header Host $http_host;
}

# main websocket
location ~ ^/lool/(.*)/ws$ {
   proxy_pass https://localhost:9980;
   proxy_set_header Upgrade $http_upgrade;
   proxy_set_header Connection "Upgrade";
   proxy_set_header Host $http_host;
   proxy_read_timeout 36000s;

}

# download, presentation and image upload
location ~ ^/lool {
   proxy_pass https://localhost:9980;
   proxy_set_header Host $http_host;

}

# Admin Console websocket
location ^~ /lool/adminws {
   proxy_pass https://localhost:9980;
   proxy_set_header Upgrade $http_upgrade;
   proxy_set_header Connection "Upgrade";
   proxy_set_header Host $http_host;
   proxy_read_timeout 36000s;
}

}

Above, this is all my configuration, my SSL certificate is correct.

If your configuration is successful, you canโ€™t share your work.