From 710d9e494345c7b4ed966b048a7be765ed57cc3a Mon Sep 17 00:00:00 2001 From: tinkle-community Date: Sat, 20 Dec 2025 13:43:59 +0800 Subject: [PATCH] feat: increase default max users to 10 and add update reminder - Change default MaxUsers from 5 to 10 in config - Add update reminder section in install.sh output - Add 'Keeping Updated' section in all README translations --- README.md | 10 ++++++++++ config/config.go | 4 ++-- docs/i18n/ja/README.md | 10 ++++++++++ docs/i18n/ko/README.md | 10 ++++++++++ docs/i18n/ru/README.md | 10 ++++++++++ docs/i18n/uk/README.md | 10 ++++++++++ docs/i18n/vi/README.md | 10 ++++++++++ docs/i18n/zh-CN/README.md | 10 ++++++++++ install.sh | 9 +++++++++ 9 files changed, 81 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1fe65f97..832ab41d 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,16 @@ docker compose -f docker-compose.prod.yml down # Stop docker compose -f docker-compose.prod.yml pull && docker compose -f docker-compose.prod.yml up -d # Update ``` +### Keeping Updated + +> **💡 Updates are frequent.** Run this command daily to stay current with the latest features and fixes: + +```bash +curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash +``` + +This one-liner pulls the latest official images and restarts services automatically. + ### Manual Installation (For Developers) #### Prerequisites diff --git a/config/config.go b/config/config.go index 030a447d..84532849 100644 --- a/config/config.go +++ b/config/config.go @@ -17,7 +17,7 @@ type Config struct { APIServerPort int JWTSecret string RegistrationEnabled bool - MaxUsers int // Maximum number of users allowed (0 = unlimited, default = 1) + MaxUsers int // Maximum number of users allowed (0 = unlimited, default = 10) // Security configuration // TransportEncryption enables browser-side encryption for API keys @@ -35,7 +35,7 @@ func Init() { cfg := &Config{ APIServerPort: 8080, RegistrationEnabled: true, - MaxUsers: 5, // Default: only 1 user allowed + MaxUsers: 10, // Default: 10 users allowed ExperienceImprovement: true, // Default: enabled to help improve the product } diff --git a/docs/i18n/ja/README.md b/docs/i18n/ja/README.md index 560445f3..8bc3e9de 100644 --- a/docs/i18n/ja/README.md +++ b/docs/i18n/ja/README.md @@ -45,6 +45,16 @@ chmod +x ./start.sh Web インターフェースにアクセス: **http://localhost:3000** +### 最新版への更新 + +> **💡 更新は頻繁です。** 最新の機能と修正を取得するために、毎日このコマンドを実行してください: + +```bash +curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash +``` + +このコマンドは最新の公式イメージを取得し、サービスを自動的に再起動します。 + ### オプション 2: 手動インストール ```bash diff --git a/docs/i18n/ko/README.md b/docs/i18n/ko/README.md index b3420245..132e0a65 100644 --- a/docs/i18n/ko/README.md +++ b/docs/i18n/ko/README.md @@ -45,6 +45,16 @@ chmod +x ./start.sh 웹 인터페이스 접속: **http://localhost:3000** +### 최신 버전 유지 + +> **💡 업데이트가 빈번합니다.** 최신 기능과 수정 사항을 받으려면 매일 이 명령을 실행하세요: + +```bash +curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash +``` + +이 명령은 최신 공식 이미지를 가져오고 서비스를 자동으로 다시 시작합니다. + ### 옵션 2: 수동 설치 ```bash diff --git a/docs/i18n/ru/README.md b/docs/i18n/ru/README.md index e68ce41f..c6f7fa39 100644 --- a/docs/i18n/ru/README.md +++ b/docs/i18n/ru/README.md @@ -45,6 +45,16 @@ chmod +x ./start.sh Доступ к веб-интерфейсу: **http://localhost:3000** +### Обновление до последней версии + +> **💡 Обновления выходят часто.** Запускайте эту команду ежедневно для получения последних функций и исправлений: + +```bash +curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash +``` + +Эта команда загружает последние официальные образы и автоматически перезапускает сервисы. + ### Вариант 2: Ручная установка ```bash diff --git a/docs/i18n/uk/README.md b/docs/i18n/uk/README.md index c91414c5..9901a4e2 100644 --- a/docs/i18n/uk/README.md +++ b/docs/i18n/uk/README.md @@ -45,6 +45,16 @@ chmod +x ./start.sh Доступ до веб-інтерфейсу: **http://localhost:3000** +### Оновлення до останньої версії + +> **💡 Оновлення виходять часто.** Запускайте цю команду щодня для отримання останніх функцій та виправлень: + +```bash +curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash +``` + +Ця команда завантажує останні офіційні образи та автоматично перезапускає сервіси. + ### Варіант 2: Ручна установка ```bash diff --git a/docs/i18n/vi/README.md b/docs/i18n/vi/README.md index 31ad045c..3341645c 100644 --- a/docs/i18n/vi/README.md +++ b/docs/i18n/vi/README.md @@ -45,6 +45,16 @@ chmod +x ./start.sh Truy cập giao diện Web: **http://localhost:3000** +### Cập Nhật Phiên Bản Mới + +> **💡 Cập nhật thường xuyên.** Chạy lệnh này hàng ngày để nhận các tính năng và bản sửa lỗi mới nhất: + +```bash +curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash +``` + +Lệnh này tải về image chính thức mới nhất và tự động khởi động lại dịch vụ. + ### Tùy chọn 2: Cài đặt Thủ công ```bash diff --git a/docs/i18n/zh-CN/README.md b/docs/i18n/zh-CN/README.md index 8a4f692e..0fe256d0 100644 --- a/docs/i18n/zh-CN/README.md +++ b/docs/i18n/zh-CN/README.md @@ -124,6 +124,16 @@ docker compose -f docker-compose.prod.yml down # 停止 docker compose -f docker-compose.prod.yml pull && docker compose -f docker-compose.prod.yml up -d # 更新 ``` +### 保持更新 + +> **💡 更新频繁。** 每天运行以下命令以获取最新功能和修复: + +```bash +curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash +``` + +此命令会拉取最新官方镜像并自动重启服务。 + ### 手动安装 (开发者) #### 前置条件 diff --git a/install.sh b/install.sh index 8fe01623..b28b13cb 100644 --- a/install.sh +++ b/install.sh @@ -187,6 +187,15 @@ print_success() { echo -e " ${BLUE}API Endpoint:${NC} http://${SERVER_IP}:8080" echo -e " ${BLUE}Install Dir:${NC} $INSTALL_DIR" echo "" + echo -e "${CYAN}╔════════════════════════════════════════════════════════════╗" + echo -e "║ 💡 Keep Updated: Run this command daily to stay current ║" + echo -e "╚════════════════════════════════════════════════════════════╝${NC}" + echo "" + echo -e " ${GREEN}curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash${NC}" + echo "" + echo -e " Updates are frequent. This one-liner pulls the latest" + echo -e " official images and restarts services automatically." + echo "" echo -e "${YELLOW}Quick Commands:${NC}" echo " cd $INSTALL_DIR" echo " $COMPOSE_CMD logs -f # View logs"