Haproxy with Nextcloud and Onlyoffice | nodefinger, webfinger warning | mixed content warning

Nextcloud version (eg, 20.0.5): 25.0.2
Operating system and version (eg, Ubuntu 20.04): Fedora Cloud 37
Apache or nginx version (eg, Apache 2.4.25): nginx/1.22.1
PHP version (eg, 7.4): 8.1.13

The issue you are facing:

  1. Nextcloud grumbles about the “webfinger” and “nodeinfo” is not correctly setup.

Note: I already solved this in a long journey for a normal internal Nextcloud installation with nginx and without being behind a HAProxy. This worked at thend flawlessly until now with SSL and HAProxy.

  1. ONLYOFFICE doesn’t accept the connection to my Nextcloud server because this server has SSL and there are not allowed “mixed content” as the error messages says. It shortly appears when trying to open a document and connecting to the ONLYOFFICE server. The installation is on a separated server.

Note: I mentioned both problems because I think the stay in relation together because both things should be offloaded to the haproxy when im not wrong but I dont know how. What I found here and on the “Internet” didn’t worked for me.

HAProxy Configuration:
https://privatebin.net/?409adbbcd4c38611#gxABES2XqEB7wLmyLoy4GYy33VkVqF1BiM5y1PBesqz

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Install Nextcloud
  2. Install ONLYOFFICE on 2nd Server
  3. Install HAProxy on 3rd Server with SSL Certificate and redirection to the Nextcloud server
  4. Login as Admin in Nextcloud, Settings > Administration Settings > Overview

The output of your Nextcloud log in Admin > Logging:

In the following log output, there are also some login errors, but this was only miss typed my password. Main focus is the “mixed content” error from ONLYOFFICE – if I have not some other errors which may I could have missed of course in this log.
Also keep in mind that most of the errors are from a few days, because in the meanwhile I shut down the server.

Admin Logging

https://privatebin.net/?b514e0bc3b5b76be#HfPMj67QJy4R92TTGFjXZiiGL5qP3UraENeEuqfB8KPF

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

Configuration (config/config.php) ``` { "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "192.168.1.121", "private.mydomain.com" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "pgsql", "version": "25.0.2.3", "overwrite.cli.url": "https:\/\/private.mydomain.com", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "instanceid": "***REMOVED SENSITIVE VALUE***", "updater.release.channel": "stable", "default_phone_region": "CH", "overwritehost": "private.mydomain.com", "overwritewebroot": "\/", "overwritecondaddr": "^192\\.168\\.1\\.120$", "overwriteprotocol": "https", "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "port": "0", "dbindex": "0" }, "memcache.local": "\\OC\\Memcache\\Redis", "memcache.distributed": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "filelocking.enabled": "True" } ```

The output of your Apache/nginx/system log in /var/log/____:

Also here, keep in mind that most of the errors are from a few days, because in the meanwhile I shut down the server.

nextcloud error /var/log/nginx/nextcloud.error
2022/12/20 16:11:57 [error] 1280#1280: *1 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected single-quoted string "redis", expecting ")" in /usr/share/nginx/nextcloud/config/config.php on line 29" while reading upstream, client: 192.168.1.249, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "192.168.1.121"
2022/12/20 16:11:57 [error] 1280#1280: *1 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected single-quoted string "redis", expecting ")" in /usr/share/nginx/nextcloud/config/config.php on line 29" while reading upstream, client: 192.168.1.249, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "192.168.1.121"
2022/12/20 16:55:07 [error] 1888#1888: *1 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "http://192.168.0.120:80/index.php", host: "private.mydomain.com"
2022/12/20 16:55:08 [error] 1889#1889: *3 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "http://192.168.0.120:80/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 16:55:55 [error] 1890#1890: *5 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "http://192.168.0.120:80/index.php", host: "private.mydomain.com"
2022/12/20 16:55:55 [error] 1891#1891: *7 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "http://192.168.0.120:80/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 16:58:52 [error] 2232#2232: *1 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "http://192.168.0.120:80/index.php", host: "private.mydomain.com"
2022/12/20 16:58:53 [error] 2231#2231: *3 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "http://192.168.0.120:80/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 16:58:56 [error] 2233#2233: *5 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "http://192.168.0.120:80/index.php", host: "private.mydomain.com"
2022/12/20 16:59:04 [error] 2230#2230: *7 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "http://192.168.0.120:80/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 16:59:05 [error] 2232#2232: *9 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "http://192.168.0.120:80/index.php", host: "private.mydomain.com"
2022/12/20 16:59:09 [error] 2232#2232: *11 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "http://192.168.0.120:80/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 17:04:41 [error] 2232#2232: *13 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "http://192.168.0.120:80/index.php", host: "private.mydomain.com"
2022/12/20 17:04:41 [error] 2232#2232: *15 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "http://192.168.0.120:80/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 17:04:45 [error] 2232#2232: *17 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "http://192.168.0.120:80/index.php", host: "private.mydomain.com"
2022/12/20 17:04:48 [error] 2232#2232: *19 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "http://192.168.0.120:80/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 17:04:52 [error] 2232#2232: *21 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "http://192.168.0.120:80/index.php", host: "private.mydomain.com"
2022/12/20 17:04:55 [error] 2232#2232: *23 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "http://192.168.0.120:80/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 17:05:21 [error] 2232#2232: *25 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "http://192.168.0.120:80/index.php", host: "private.mydomain.com"
2022/12/20 17:05:21 [error] 2232#2232: *27 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "http://192.168.0.120:80/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 17:21:06 [error] 2683#2683: *1 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "https://192.168.0.120:443/index.php", host: "private.mydomain.com"
2022/12/20 17:21:06 [error] 2680#2680: *3 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "https://192.168.0.120:443/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 17:21:10 [error] 2681#2681: *5 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "https://192.168.0.120:443/index.php", host: "private.mydomain.com"
2022/12/20 17:21:13 [error] 2682#2682: *7 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "https://192.168.0.120:443/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 17:21:40 [error] 2733#2733: *1 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "https://192.168.0.120:443/index.php", host: "private.mydomain.com"
2022/12/20 17:21:40 [error] 2730#2730: *3 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "https://192.168.0.120:443/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 17:21:43 [error] 2731#2731: *7 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "https://192.168.0.120:443/index.php", host: "private.mydomain.com"
2022/12/20 17:21:46 [error] 2733#2733: *9 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "https://192.168.0.120:443/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 17:21:50 [error] 2733#2733: *11 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "https://192.168.0.120:443/index.php", host: "private.mydomain.com"
2022/12/20 17:21:51 [error] 2733#2733: *13 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "https://192.168.0.120:443/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 17:21:54 [error] 2733#2733: *15 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "https://192.168.0.120:443/index.php", host: "private.mydomain.com"
2022/12/20 17:21:58 [error] 2733#2733: *17 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "https://192.168.0.120:443/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 17:22:12 [error] 2732#2732: *5 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "https://192.168.0.120:443/index.php", host: "private.mydomain.com"
2022/12/20 17:23:05 [error] 2778#2778: *1 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "https://192.168.0.121:443/index.php", host: "private.mydomain.com"
2022/12/20 17:23:05 [error] 2777#2777: *3 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "https://192.168.0.121:443/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 17:23:08 [error] 2779#2779: *7 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "https://192.168.0.121:443/index.php", host: "private.mydomain.com"
2022/12/20 17:23:12 [error] 2778#2778: *9 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "https://192.168.0.121:443/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 17:23:16 [error] 2778#2778: *11 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "https://192.168.0.121:443/index.php", host: "private.mydomain.com"
2022/12/20 17:23:16 [error] 2778#2778: *13 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "https://192.168.0.121:443/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 17:23:21 [error] 2776#2776: *5 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "https://192.168.0.121:443/index.php", host: "private.mydomain.com"
2022/12/20 17:24:07 [error] 2824#2824: *1 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "http://192.168.0.121:80/index.php", host: "private.mydomain.com"
2022/12/20 17:24:07 [error] 2825#2825: *3 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "http://192.168.0.121:80/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/20 17:24:11 [error] 2827#2827: *5 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET / HTTP/1.1", upstream: "http://192.168.0.121:80/index.php", host: "private.mydomain.com"
2022/12/20 17:24:14 [error] 2826#2826: *7 connect() failed (101: Network is unreachable) while connecting to upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "http://192.168.0.121:80/favicon.ico", host: "private.mydomain.com", referrer: "https://private.mydomain.com/"
2022/12/23 21:39:45 [error] 1019#1019: *74 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 21:39:47 [error] 1019#1019: *76 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 21:40:47 [error] 1019#1019: *88 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 21:41:02 [error] 1018#1018: *94 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 21:43:16 [error] 1248#1248: *38 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 21:43:16 [error] 1248#1248: *40 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 21:53:04 [error] 1461#1461: *40 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 21:53:05 [error] 1460#1460: *42 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:06:11 [error] 1462#1462: *292 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:06:12 [error] 1462#1462: *290 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:06:55 [error] 1460#1460: *338 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/files/admin/Documents/Welcome%20to%20Nextcloud%20Hub.docx HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:07:08 [error] 1460#1460: *340 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/files/admin/Documents/Welcome%20to%20Nextcloud%20Hub.docx HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:07:28 [error] 1459#1459: *365 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:07:32 [error] 1459#1459: *363 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:07:40 [error] 1459#1459: *385 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PUT /apps/onlyoffice/ajax/settings/address HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:08:12 [error] 1462#1462: *391 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PUT /apps/onlyoffice/ajax/settings/address HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:08:34 [error] 1461#1461: *416 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/files/admin/Documents/Welcome%20to%20Nextcloud%20Hub.docx HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:08:44 [error] 1461#1461: *418 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/files/admin/Documents/Example.md HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:08:57 [error] 1460#1460: *462 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/files/admin/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:09:07 [error] 1462#1462: *502 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:09:09 [error] 1462#1462: *500 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:10:31 [error] 1997#1997: *38 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:10:32 [error] 1994#1994: *40 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:18:47 [error] 2261#2261: *1 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected single-quoted string "trusted_proxies", expecting ")" in /usr/share/nginx/nextcloud/config/config.php on line 27" while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PUT /ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:18:48 [error] 2260#2260: *3 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected single-quoted string "trusted_proxies", expecting ")" in /usr/share/nginx/nextcloud/config/config.php on line 27" while reading upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /settings/admin/overview HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:18:49 [error] 2262#2262: *5 FastCGI sent in stderr: "PHP message: PHP Parse error:  syntax error, unexpected single-quoted string "trusted_proxies", expecting ")" in /usr/share/nginx/nextcloud/config/config.php on line 27" while reading upstream, client: 192.168.1.120, server: 192.168.1.121, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:19:40 [error] 2311#2311: *22 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:19:41 [error] 2311#2311: *20 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:25:15 [error] 2560#2560: *24 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:25:16 [error] 2560#2560: *22 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:27:47 [error] 2657#2657: *24 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:27:48 [error] 2657#2657: *26 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:31:37 [error] 2822#2822: *22 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:31:38 [error] 2822#2822: *20 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:32:03 [error] 2863#2863: *20 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:32:05 [error] 2863#2863: *22 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:34:28 [error] 2860#2860: *71 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/files/admin/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:34:38 [error] 2860#2860: *81 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/files/admin/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:34:45 [error] 2860#2860: *85 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/files/admin/Documents HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:34:52 [error] 2861#2861: *99 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/files/admin/Documents HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:36:07 [error] 3062#3062: *41 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:36:09 [error] 3062#3062: *44 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:36:22 [error] 3063#3063: *72 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/files/admin/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:36:44 [error] 3062#3062: *88 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/files/admin/Documents HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:36:54 [error] 3060#3060: *127 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:36:57 [error] 3060#3060: *125 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:39:41 [error] 3060#3060: *241 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/systemtags/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:40:26 [error] 3062#3062: *445 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 22:40:27 [error] 3062#3062: *443 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 23:01:46 [error] 3061#3061: *504 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 23:01:49 [error] 3061#3061: *502 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 23:10:17 [error] 3062#3062: *568 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PROPFIND /remote.php/dav/files/admin/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 23:47:42 [error] 1380#1380: *244 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PUT /apps/onlyoffice/ajax/settings/address HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 23:47:58 [error] 1380#1380: *246 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PUT /apps/onlyoffice/ajax/settings/address HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"
2022/12/23 23:48:02 [error] 1380#1380: *256 recv() failed (104: Connection reset by peer) while reading response header from upstream, client: 192.168.1.120, server: 192.168.1.121, request: "PUT /apps/onlyoffice/ajax/settings/address HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "private.mydomain.com"

Note: No errors in nginx log > /var/log/nginx/error.log

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

Already posted above in the “Admin Logging”

When I missed something to explain just ask, I give my best to deliver the answer.

Greetings LxWulf