[PR #545] Permit to change the forcesave options with env variables #654

Open
opened 2026-02-26 10:33:25 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ONLYOFFICE/Docker-DocumentServer/pull/545
Author: @ppom0
Created: 11/10/2022
Status: 🔄 Open

Base: masterHead: permit-forcesave-as-env-var


📝 Commits (1)

  • 3589af4 Permit to change the forcesave options with env variables

📊 Changes

2 files changed (+12 additions, -0 deletions)

View changed files

📝 README.md (+3 -0)
📝 run-document-server.sh (+9 -0)

📄 Description

I recently had a loss of data due to OnlyOffice not detecting end of editing sessions and not saving back documents.

I discovered the forcesave autoAssembly option, which is very valuable to me.
But I had trouble overriding local.json in a working manner:
If I mount it to the container, it gets overrode by the entrypoint, and if I mount it read-only, the entrypoint crashes.

So I patched the container entrypoint, to be able to configure those parameters as environment variables.

Tell me what you think about this PR and which changes you'd need to merge it.

Many thanks!


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ONLYOFFICE/Docker-DocumentServer/pull/545 **Author:** [@ppom0](https://github.com/ppom0) **Created:** 11/10/2022 **Status:** 🔄 Open **Base:** `master` ← **Head:** `permit-forcesave-as-env-var` --- ### 📝 Commits (1) - [`3589af4`](https://github.com/ONLYOFFICE/Docker-DocumentServer/commit/3589af42e40638dee62e11baa2b8b482067ee1af) Permit to change the forcesave options with env variables ### 📊 Changes **2 files changed** (+12 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+3 -0) 📝 `run-document-server.sh` (+9 -0) </details> ### 📄 Description I recently had a loss of data due to OnlyOffice not detecting end of editing sessions and not saving back documents. I discovered the forcesave `autoAssembly` option, which is very valuable to me. But I had trouble overriding `local.json` in a working manner: If I mount it to the container, it gets overrode by the entrypoint, and if I mount it read-only, the entrypoint crashes. So I patched the container entrypoint, to be able to configure those parameters as environment variables. Tell me what you think about this PR and which changes you'd need to merge it. Many thanks! --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-DocumentServer-ONLYOFFICE#654
No description provided.