Magicalex c'est ce que j'avais fait en commentant de la sorte
server {
server_name cloud.superboki.com;
listen 80 default_server;
listen [::]:80 default_server;
location ^~ /.well-known/acme-challenge {
proxy_pass http://127.0.0.1:81;
proxy_set_header Host $host;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
server_name cloud.superboki.com;
#listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
root /var/www/nextcloud/;
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location = /.well-known/carddav {
return 301 $scheme://$host/remote.php/dav;
}
location = /.well-known/caldav {
return 301 $scheme://$host/remote.php/dav;
}
J'ai toujours l'erreur pour NGINX
Oct 31 12:57:38 NEXTCLOUD systemd[1]: Starting A high performance web server and a reverse proxy server...
Oct 31 12:57:38 NEXTCLOUD nginx[2261]: nginx: [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive in /etc/nginx/conf.d/nextcloud.conf:13
Oct 31 12:57:38 NEXTCLOUD nginx[2261]: nginx: configuration file /etc/nginx/nginx.conf test failed
Oct 31 12:57:38 NEXTCLOUD systemd[1]: nginx.service: Control process exited, code=exited status=1
Oct 31 12:57:38 NEXTCLOUD systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Oct 31 12:57:38 NEXTCLOUD systemd[1]: nginx.service: Unit entered failed state.
Oct 31 12:57:38 NEXTCLOUD systemd[1]: nginx.service: Failed with result 'exit-code'.