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=" +);