Consider expiring Onlyoffice sessions earlier
This has appeared as an option while researching tpo/tpa/nextcloud#29, even though it's not a proper fix (see below).
Onlyoffice works in a counterintuitive way in which documents being edited are only automatically written back to Nextcloud after everyone has closed them or after all corresponding idle sessions have expired. Decreasing the "session idle timeout" is one way to improve this UX issue, even though still not ideal: it is not a proper fix and will create another UX issue which is the need for reloading the page after the session has expired.
The session idle timemout in the container image we're currently using defaults to 1h. Older versions used to allow for changing that setting via environment variables, but that's not the case for the image we're using.
The cheap option I currently see is to provide a custom JSON config as a bind mount:
- Grab
/etc/onlyoffice/documentserver/default.json
from the image - Change where it says
"sessionidle": "1h",
to, say,15m
- Change the docker-compose file to add the custom file as a bind mount
- Do a docker-compose down/up
- Test with an open document whether expiration in 15min works
Assigning to @micah as i understand he's the only one that can do this currently.