Self-Hosted Installation behind reverse-proxy

Hi, I am attempting to install OnlyOffice Workspace Community as a rootless podman container within my home server, behind caddy reverse proxy. I am encountering mysterious silent errors for which I thought asking the community.

I am familiar with rootless podman limitations, as I have succeded hosting several other services by adjusting r/w permissions on volumes or disabling some features (like in the case of homeassistant). However I am failing to start OnlyOffice.

My current setup workflow follows the official docker-compose setup page:

  • git clone github/ONLYOFFICE/Docker-CommunityServer
  • cd Docker-CommunityServer
  • modify config/mysql/conf.d/onlyoffice.cnf with my db/mail users
  • modify docker-compose.workspace.yml file with users/passwords/secrets
  • compose up -d

Caddy simply directs office.mydomain.com to the onlyoffice-community-server local port.

Reaching mydomain com offers a landing page with onlyoffice and a loading bar, but looking at the console any mydomain com/api/* GET fails with 502 error.

Back in the home server, the mysql server seems healthy as I can reach it from inside the community server setup with my own users, but localhost/api calls fail as well.

What steps could I use, or what information could i share for troubleshooting this problem?

Since I have reverse proxy and no need for mail, I could be ok with an installation that is http only and has no mail server.

Thank you in advance

Update: The same exact error happens in docker rootful. Is there something especially about reverse-proxy that I am missing?

Hello @simoneshawncazzaniga

Unfortunately, there are no guides for putting Workspace (Community Server) behind a reverse proxy. Workspace already relies on a complex system of proxying that servers all the APIs.

If you want to put Workspace behind a reverse-proxy, you have to keep in mind that simply redirecting is not enough, API calls also need to be delivered to the respective endpoints, thus all services must be functioning too.

For the reference, you can take a proxy samples for ONLYOFFICE Docs as a starting point: