env('ONLYOFFICE_DS_URL', 'http://localhost:8080'), // Base URL the Document Server container uses to reach THIS Laravel app // (for the download and callback requests). When the document server runs // in Docker and Laravel runs on the host machine, APP_URL (e.g. // http://localhost:8000) is not reachable from inside the container — // use http://host.docker.internal:8000 instead. Falls back to APP_URL // when unset (e.g. both running in the same Docker network). 'callback_base_url' => env('ONLYOFFICE_CALLBACK_BASE_URL', env('APP_URL', 'http://localhost')), // Shared secret used to sign/verify JWTs exchanged with the Document Server // (editor config sent to the browser, and callback requests received from it). 'jwt_secret' => env('ONLYOFFICE_JWT_SECRET'), ];