Problem with only office https domain api.js

Hello everyone,

I’ve been trying for a few days to get OnlyOffice to work together with Filestash over HTTPS and a registered domain, but without success.

First of all, I have an Apache proxy that intercepts ports 80 and 443 so I can register the domain with Certbot where everything is hosted. When downloading Filestash, the OnlyOffice Docker image is also downloaded. When I work with numeric addresses and HTTP, OnlyOffice works without issues. But when I switch to domain names and configure OnlyOffice to work as HTTPS according to the instructions, the error I get is:

https://mydomain.com/web-apps/apps/api/documents/api.js net::ERR_ABORTED 404 (Not Found).

To ensure OnlyOffice is working, I redirected port 8081 to port 443 in Docker, and when I access https://mydomain.com/web-apps/apps/api/documents/api.js, I get the JavaScript code. I tried changing paths and links within Filestash to see if I could get it to work, but without success. Also, when I try to access https://mydomain.com:8081, the welcome page loads without any issues. As I mentioned, I intentionally exposed port 8081 to check if OnlyOffice’s port 443 is functioning. All communication between Filestash and OnlyOffice takes place over internal ports.

Hello @zemzema
Do I understand it right that you are going to integrate Document server with Filestash? As far as I understand, this is a DMS. Could you please point me to the guide that you used?
As for proxy-server, have you had a chance to compare your Apache config files with our samples?Using ONLYOFFICE Docs behind the proxy - ONLYOFFICE