From ee335fa22ee9db464fff67f68bddf035125590ce Mon Sep 17 00:00:00 2001 From: Andrei Canta Date: Thu, 28 Aug 2025 16:05:36 +0300 Subject: [PATCH] remove secret key --- dify/code/.env.example | 2 +- dify/update.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/dify/code/.env.example b/dify/code/.env.example index 31aed97..226a7b7 100644 --- a/dify/code/.env.example +++ b/dify/code/.env.example @@ -91,7 +91,7 @@ ENABLE_REQUEST_LOGGING=False # A secret key that is used for securely signing the session cookie # and encrypting sensitive information on the database. # You can generate a strong key using `openssl rand -base64 42`. -SECRET_KEY=sk-9f73s3ljTXVcMT3Blb3ljTqtsKiGHXVcMT3BlbkFJLK7U +SECRET_KEY= # Password for admin user initialization. # If left unset, admin user will not be prompted for a password diff --git a/dify/update.js b/dify/update.js index 527f581..48d1867 100644 --- a/dify/update.js +++ b/dify/update.js @@ -10,3 +10,9 @@ await utils.searchReplace( "APP_WEB_URL=", "APP_WEB_URL=https://$(PRIMARY_DOMAIN)" ); + +await utils.searchReplace( + "./code/.env.example", + "SECRET_KEY=sk-9f73s3ljTXVcMT3Blb3ljTqtsKiGHXVcMT3BlbkFJLK7U", + "SECRET_KEY=" +);