From 44eb1e9ab00c1efdd714078672980b62a716572e Mon Sep 17 00:00:00 2001
From: Timothy Carambat <rambat1010@gmail.com>
Date: Thu, 18 Jan 2024 18:13:24 -0800
Subject: [PATCH] 617 persist special env keys (#624)

* add support for exporting to json and csv in workspace chats

* safety encode URL options

* remove message about openai fine tuning on export success

* all defaults to jsonl

* Persist special env keys on updates

---------

Co-authored-by: shatfield4 <seanhatfield5@gmail.com>
---
 server/utils/helpers/updateENV.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/server/utils/helpers/updateENV.js b/server/utils/helpers/updateENV.js
index 9e89047ff..8114927b8 100644
--- a/server/utils/helpers/updateENV.js
+++ b/server/utils/helpers/updateENV.js
@@ -450,6 +450,12 @@ async function dumpENV() {
     "PASSWORDNUMERIC",
     "PASSWORDSYMBOL",
     "PASSWORDREQUIREMENTS",
+    // HTTPS SETUP KEYS
+    "ENABLE_HTTPS",
+    "HTTPS_CERT_PATH",
+    "HTTPS_KEY_PATH",
+    // DISABLED TELEMETRY
+    "DISABLE_TELEMETRY",
   ];
 
   for (const key of protectedKeys) {