[GH-ISSUE #282] Configure license through env var and/or docker secrets #151

Closed
opened 2026-02-26 09:37:03 +03:00 by kerem · 3 comments
Owner

Originally created by @ntoljic on GitHub (Aug 17, 2020).
Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/282

Do you want to request a feature or report a bug?
Feature

What is the current behavior?
The license information for the integration edition must be supplied as a file in the container, either through a mount or through baking the file into a custom image.

What is the expected behavior?
What I would like to see is the addition of two environmental variables.
If the env var LICENSE is set, the application should read the license information from it directly.
If the env var LICENSE_FILE is set, the application should read the license information from the path stored in this variable.

Did this work in previous versions of DocumentServer?
No, this is a feature request which would bring the DocumentServer image more in line with docker best practices.

DocumentServer Docker tag:
N/A

Host Operating System:
N/A

Originally created by @ntoljic on GitHub (Aug 17, 2020). Original GitHub issue: https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/282 **Do you want to request a *feature* or report a *bug*?** Feature **What is the current behavior?** The license information for the integration edition must be supplied as a file in the container, either through a mount or through baking the file into a custom image. **What is the expected behavior?** What I would like to see is the addition of two environmental variables. If the env var `LICENSE` is set, the application should read the license information from it directly. If the env var `LICENSE_FILE` is set, the application should read the license information from the path stored in this variable. **Did this work in previous versions of DocumentServer?** No, this is a feature request which would bring the DocumentServer image more in line with docker best practices. **DocumentServer Docker tag:** N/A **Host Operating System:** N/A
kerem 2026-02-26 09:37:03 +03:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@ShockwaveNN commented on GitHub (Aug 17, 2020):

Storing license data in LICENSE var I think it's a good idea and we may discuss it with our team, @agolybev any thoughts?

But not sure about LICENSE_FILE - we already have an option in /etc/onlyoffice/documentserver/default.json - license:license_file, not 100% if it works correctly

In general I like this idea

<!-- gh-comment-id:674714069 --> @ShockwaveNN commented on GitHub (Aug 17, 2020): Storing license data in `LICENSE` var I think it's a good idea and we may discuss it with our team, @agolybev any thoughts? But not sure about `LICENSE_FILE` - we already have an option in `/etc/onlyoffice/documentserver/default.json` - `license:license_file`, not 100% if it works correctly In general I like this idea
Author
Owner

@igwyd commented on GitHub (Dec 15, 2023):

Duplicate of https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/326

<!-- gh-comment-id:1857340222 --> @igwyd commented on GitHub (Dec 15, 2023): Duplicate of https://github.com/ONLYOFFICE/Docker-DocumentServer/issues/326
Author
Owner

@Rita-Bubnova commented on GitHub (Dec 15, 2023):

I close this issue. Feel free to comment or reopen it if you got further questions.

<!-- gh-comment-id:1857542210 --> @Rita-Bubnova commented on GitHub (Dec 15, 2023): I close this issue. Feel free to comment or reopen it if you got further questions.
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#151
No description provided.