mirror of
https://github.com/arch3rPro/1Panel-Appstore.git
synced 2026-04-22 04:57:11 +08:00
refactor(sub2api): 重构配置管理和版本结构
移除硬编码的配置文件,改为使用环境变量 添加 0.1.106 稳定版本目录结构 更新 README 文档说明自动生成密码功能
This commit is contained in:
@@ -26,11 +26,11 @@ After deployment, access `http://YOUR_SERVER_IP:8080` to run the setup wizard.
|
||||
**Database Connection Settings:**
|
||||
- PostgreSQL Host: `postgres` (use service name in Docker network, NOT localhost)
|
||||
- Redis Host: `redis` (use service name in Docker network, NOT localhost)
|
||||
- PostgreSQL Password: Please use a strong password
|
||||
- PostgreSQL Password: Automatically generated by the system (can be customized during deployment)
|
||||
|
||||
**JWT Secret Requirements:**
|
||||
- Length must be at least 32 characters
|
||||
- Use a randomly generated strong password for production
|
||||
- Automatically generated by the system with a strong random password
|
||||
- Length is at least 32 characters
|
||||
|
||||
### Data Directory
|
||||
|
||||
@@ -39,6 +39,11 @@ Application data is stored in Docker named volumes:
|
||||
- `redis_data` - Redis cache data
|
||||
- `./data` - Application configuration and data
|
||||
|
||||
## Version Information
|
||||
|
||||
- **latest**: Latest development version
|
||||
- **0.1.106**: Latest stable version (recommended)
|
||||
|
||||
## Links
|
||||
|
||||
- Website: https://sub2api.org
|
||||
@@ -49,7 +54,7 @@ Application data is stored in Docker named volumes:
|
||||
|
||||
1. **Database Connection**: In Docker deployment, PostgreSQL and Redis use service names (`postgres`, `redis`) for connection. Do NOT use `localhost`
|
||||
|
||||
2. **JWT Secret**: Must be at least 32 characters, use a random string recommended
|
||||
2. **JWT Secret and Database Password**: System will automatically generate strong passwords, which will be auto-filled during deployment, no manual setup required
|
||||
|
||||
3. **First Deployment**: If you encounter database connection errors, ensure:
|
||||
- PostgreSQL container has fully started (wait about 10-30 seconds)
|
||||
@@ -58,4 +63,4 @@ Application data is stored in Docker named volumes:
|
||||
4. **Disclaimer**:
|
||||
- This project is for personal learning purposes only
|
||||
- Users must comply with the Terms of Service of Anthropic, OpenAI, etc.
|
||||
- Do not use for illegal purposes
|
||||
- Do not use for illegal purposes
|
||||
|
||||
Reference in New Issue
Block a user