From c8111e7342acb8f57b804d6f31a7c80d9c60d4ec Mon Sep 17 00:00:00 2001 From: troyeguo <13820674+troyeguo@users.noreply.github.com> Date: Sun, 17 May 2026 10:00:01 +0800 Subject: [PATCH] feat: update environment variables for Koreader registration and localization adjustments --- Dockerfile | 4 ++-- httpserver/koreader.go | 2 +- src/assets/locales/zh-CN.json | 2 +- src/constants/settingList.tsx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3751b57b..326c76dc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,8 +32,8 @@ ENV SERVER_USERNAME=admin ENV SERVER_PASSWORD=securePass123 ENV SERVER_PASSWORD_FILE=my_secret ENV ENABLE_KOREADER_SERVER=false -ENV KOREADER_PORT=7200 -ENV KOREADER_ENABLE_REGISTRATION=true +ENV ENABLE_KOREADER_REGISTRATION=true +ENV ENABLE_OPDS=false # Define volume for uploads directory VOLUME ["/app/uploads"] diff --git a/httpserver/koreader.go b/httpserver/koreader.go index ffed0354..6be17377 100644 --- a/httpserver/koreader.go +++ b/httpserver/koreader.go @@ -43,7 +43,7 @@ func initKoreader() { } koreaderPort = getEnv("KOREADER_PORT", "7200") - koreaderRegistrationEnabled = getEnv("KOREADER_ENABLE_REGISTRATION", "true") != "false" + koreaderRegistrationEnabled = getEnv("ENABLE_KOREADER_REGISTRATION", "true") != "false" // Ensure the config directory exists inside the uploads volume. dbDir := filepath.Join(uploadDir, "config") diff --git a/src/assets/locales/zh-CN.json b/src/assets/locales/zh-CN.json index ad5a3b74..e897d983 100644 --- a/src/assets/locales/zh-CN.json +++ b/src/assets/locales/zh-CN.json @@ -630,7 +630,7 @@ "Eudic Access Token": "欧路词典访问令牌", "Enter your Eudic NIS access token": "输入你的欧路词典 访问令牌", "Eudic Study List Name": "欧路词典生词本名称", - "Enter the study list name (leave blank for default)": "输入学习列表名称(留空使用默认值)", + "Enter the study list name": "输入生词本名称", "Eudic Language": "词典语言", "Language code, e.g. en / fr / de / es": "语言代码,例如 en / fr / de / es", "Auto sync new words to AnkiConnect": "自动同步生词到 AnkiConnect", diff --git a/src/constants/settingList.tsx b/src/constants/settingList.tsx index 50553f0f..d6ca1689 100644 --- a/src/constants/settingList.tsx +++ b/src/constants/settingList.tsx @@ -216,7 +216,7 @@ export const wordSyncSettingList = [ { key: "categoryName", label: "Eudic Study List Name", - placeholder: "Enter the study list name (leave blank for default)", + placeholder: "Enter the study list name", }, { key: "language",