Skip to content

Commit

Permalink
Add an environment variable for the support key
Browse files Browse the repository at this point in the history
As a followup from change I75762ad620132037523fa82167a3ff17075c7027, it
would be nice to be able to set the support key via environment
variables. This commit adds support for a new 'support_key' environment
variable

Signed-off-by: Skyler Grey <skyler.grey@collabora.com>
Change-Id: Ibfe2bf055b34e4ae01a42b5616f6ad7977f15157
  • Loading branch information
Minion3665 committed Sep 19, 2023
1 parent 23551fa commit f9dbec6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wsd/COOLWSD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3037,6 +3037,7 @@ void COOLWSD::initializeEnvOptions()
if ((optionValue = std::getenv("password")) != nullptr) _overrideSettings["admin_console.password"] = optionValue;
if ((optionValue = std::getenv("server_name")) != nullptr) _overrideSettings["server_name"] = optionValue;
if ((optionValue = std::getenv("dictionaries")) != nullptr) _overrideSettings["allowed_languages"] = optionValue;
if ((optionValue = std::getenv("support_key")) != nullptr) _overrideSettings["support_key"] = optionValue;
}

#if !MOBILEAPP
Expand Down

0 comments on commit f9dbec6

Please sign in to comment.