Reverse Proxy Help "File Not Found"

For bug reports, provide the steps to reproduce and if possible a minimal demo of the problem:

When I try to connect to onlyoffice, i get this error
Error when trying to connect (Client error: GET https://0nly0ffice.duckdns.org/healthcheck` resulted in a 404 Not Found response:`

When I navigate to 0nly0ffice.duckdns.org, the page says “file not found”
Document Server version: 8.0.0-99
Connector version: 8.2.4
DMS (platform) version:
OS: Debian
Browser version: Google Chrome
I wasn’t able to add my nginx config because of the limations of this forum, but this is the config template i followed https://github.com/ONLYOFFICE/document-server-proxy/blob/master/nginx/proxy-https-to-http.conf

So I decided to use the config from here instead https://gist.github.com/JSinghDev/0b68890e07c43b4cc013acc4148d2a43

Now I get this error when i try to connect in Nextcloud

Error when trying to connect (Error occurred in the document service: Unknown error) (version 8.0.0.99)

When I use the ds-example to create a new file, I get this message

You are trying to perform an action you do not have the rights for

When I check the status of nginx, the system says it’s running but I also see this:

Feb 03 14:45:35 Onlyoffice systemd[1]: Starting A high performance web server and a reverse proxy server…
Feb 03 14:45:38 Onlyoffice systemd[1]: nginx.service: Failed to parse PID from file /run/nginx.pid: Invalid argument
Feb 03 14:45:38 Onlyoffice systemd[1]: Started A high performance web server and a reverse proxy server.

tail out.log shows:

[2024-02-03T17:56:08.192] [ERROR] [localhost] [conv_check_1236454926_docx] [userId] nodeJS - convertRequest error: error: relation “task_result” does not exist
at /snapshot/server/DocService/node_modules/pg-pool/index.js:45:11
at processTicksAndRejections (node:internal/process/task_queues:96:5)

Ended up being a postgresql issue. I had to change the ownership of the database from postgres to onlyoffice.

I found the solution here: Error: relation "task_result" does not exist - #17 by evamed