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
This commit is contained in:
tinkle-community
2025-12-20 13:43:59 +08:00
parent 7baa07738a
commit 710d9e4943
9 changed files with 81 additions and 2 deletions

View File

@@ -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 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) ### Manual Installation (For Developers)
#### Prerequisites #### Prerequisites

View File

@@ -17,7 +17,7 @@ type Config struct {
APIServerPort int APIServerPort int
JWTSecret string JWTSecret string
RegistrationEnabled bool 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 // Security configuration
// TransportEncryption enables browser-side encryption for API keys // TransportEncryption enables browser-side encryption for API keys
@@ -35,7 +35,7 @@ func Init() {
cfg := &Config{ cfg := &Config{
APIServerPort: 8080, APIServerPort: 8080,
RegistrationEnabled: true, RegistrationEnabled: true,
MaxUsers: 5, // Default: only 1 user allowed MaxUsers: 10, // Default: 10 users allowed
ExperienceImprovement: true, // Default: enabled to help improve the product ExperienceImprovement: true, // Default: enabled to help improve the product
} }

View File

@@ -45,6 +45,16 @@ chmod +x ./start.sh
Web インターフェースにアクセス: **http://localhost:3000** Web インターフェースにアクセス: **http://localhost:3000**
### 最新版への更新
> **💡 更新は頻繁です。** 最新の機能と修正を取得するために、毎日このコマンドを実行してください:
```bash
curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash
```
このコマンドは最新の公式イメージを取得し、サービスを自動的に再起動します。
### オプション 2: 手動インストール ### オプション 2: 手動インストール
```bash ```bash

View File

@@ -45,6 +45,16 @@ chmod +x ./start.sh
웹 인터페이스 접속: **http://localhost:3000** 웹 인터페이스 접속: **http://localhost:3000**
### 최신 버전 유지
> **💡 업데이트가 빈번합니다.** 최신 기능과 수정 사항을 받으려면 매일 이 명령을 실행하세요:
```bash
curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash
```
이 명령은 최신 공식 이미지를 가져오고 서비스를 자동으로 다시 시작합니다.
### 옵션 2: 수동 설치 ### 옵션 2: 수동 설치
```bash ```bash

View File

@@ -45,6 +45,16 @@ chmod +x ./start.sh
Доступ к веб-интерфейсу: **http://localhost:3000** Доступ к веб-интерфейсу: **http://localhost:3000**
### Обновление до последней версии
> **💡 Обновления выходят часто.** Запускайте эту команду ежедневно для получения последних функций и исправлений:
```bash
curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash
```
Эта команда загружает последние официальные образы и автоматически перезапускает сервисы.
### Вариант 2: Ручная установка ### Вариант 2: Ручная установка
```bash ```bash

View File

@@ -45,6 +45,16 @@ chmod +x ./start.sh
Доступ до веб-інтерфейсу: **http://localhost:3000** Доступ до веб-інтерфейсу: **http://localhost:3000**
### Оновлення до останньої версії
> **💡 Оновлення виходять часто.** Запускайте цю команду щодня для отримання останніх функцій та виправлень:
```bash
curl -fsSL https://raw.githubusercontent.com/NoFxAiOS/nofx/main/install.sh | bash
```
Ця команда завантажує останні офіційні образи та автоматично перезапускає сервіси.
### Варіант 2: Ручна установка ### Варіант 2: Ручна установка
```bash ```bash

View File

@@ -45,6 +45,16 @@ chmod +x ./start.sh
Truy cập giao diện Web: **http://localhost:3000** 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 ### Tùy chọn 2: Cài đặt Thủ công
```bash ```bash

View File

@@ -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 # 更新 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
```
此命令会拉取最新官方镜像并自动重启服务。
### 手动安装 (开发者) ### 手动安装 (开发者)
#### 前置条件 #### 前置条件

View File

@@ -187,6 +187,15 @@ print_success() {
echo -e " ${BLUE}API Endpoint:${NC} http://${SERVER_IP}:8080" echo -e " ${BLUE}API Endpoint:${NC} http://${SERVER_IP}:8080"
echo -e " ${BLUE}Install Dir:${NC} $INSTALL_DIR" echo -e " ${BLUE}Install Dir:${NC} $INSTALL_DIR"
echo "" 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 -e "${YELLOW}Quick Commands:${NC}"
echo " cd $INSTALL_DIR" echo " cd $INSTALL_DIR"
echo " $COMPOSE_CMD logs -f # View logs" echo " $COMPOSE_CMD logs -f # View logs"