Fix internal backend IP
Some checks failed
Automated Container Build / build-and-push (push) Has been cancelled

This commit is contained in:
Elijah 2026-05-24 12:07:24 -07:00
parent 82a19442d7
commit 7de186ee05

View file

@ -47,7 +47,7 @@ export default function OnlyOfficeEditor({ file, type, onClose }: OnlyOfficeEdit
// Use the internal backend URL for OnlyOffice server-to-server communication // Use the internal backend URL for OnlyOffice server-to-server communication
// to avoid Hairpin NAT/DNS issues from inside the Docker network. // to avoid Hairpin NAT/DNS issues from inside the Docker network.
const INTERNAL_BACKEND_URL = 'http://192.168.50.81:5827'; const INTERNAL_BACKEND_URL = 'http://192.168.50.57:5827';
// URL that OnlyOffice will use to download the file // URL that OnlyOffice will use to download the file
const fileUrl = `${INTERNAL_BACKEND_URL}/api/files/download/?path=${encodeURIComponent(file.path)}&token=${downloadToken}`; const fileUrl = `${INTERNAL_BACKEND_URL}/api/files/download/?path=${encodeURIComponent(file.path)}&token=${downloadToken}`;