📝 docs: Update default administrator account information and security recommendations in installation guides

This commit is contained in:
web@ppanel 2025-12-28 07:05:21 +00:00
parent c84b5a0b35
commit 7279275532
10 changed files with 96 additions and 8 deletions

View File

@ -211,8 +211,19 @@ After successful installation, you can access:
- **User Panel**: `http://your-server-ip:8080` - **User Panel**: `http://your-server-ip:8080`
- **Admin Panel**: `http://your-server-ip:8080/admin/` - **Admin Panel**: `http://your-server-ip:8080/admin/`
::: warning Default Credentials ::: warning Administrator Account
Please change the default admin password immediately after first login for security. **Default Administrator Account** (if not configured in config file):
- **Email**: `admin@ppanel.dev`
- **Password**: `password`
**One-Click Installation Script** will automatically generate random administrator credentials displayed at the end:
- **Email**: `admin-[8 random characters]@ppanel.dev`
- **Password**: `[Randomly generated 16-character password]`
**Security Recommendations**:
- When using the one-click script, save the generated credentials securely
- Change your password immediately after first login
- If using default credentials, **must** change both email and password after first login
::: :::
### Configure Reverse Proxy (Optional) ### Configure Reverse Proxy (Optional)

View File

@ -309,6 +309,14 @@ ps aux | grep ppanel
- **User Panel**: `http://your-server-ip:8080` - **User Panel**: `http://your-server-ip:8080`
- **Admin Panel**: `http://your-server-ip:8080/admin/` - **Admin Panel**: `http://your-server-ip:8080/admin/`
::: warning Default Credentials
**Default Administrator Account**:
- **Email**: `admin@ppanel.dev`
- **Password**: `password`
**Security**: Change the default credentials immediately after first login.
:::
### Configure Firewall ### Configure Firewall
```bash ```bash

View File

@ -223,7 +223,11 @@ After successful installation, you can access:
- **Admin Panel**: `http://your-server-ip:8080/admin/` - **Admin Panel**: `http://your-server-ip:8080/admin/`
::: warning Default Credentials ::: warning Default Credentials
Please change the default admin password immediately after first login for security. **Default Administrator Account** (if not configured):
- **Email**: `admin@ppanel.dev`
- **Password**: `password`
**Security**: Change the default credentials immediately after first login.
::: :::
### Configure Reverse Proxy (Recommended) ### Configure Reverse Proxy (Recommended)

View File

@ -232,6 +232,14 @@ docker volume rm ppanel-data
``` ```
::: :::
::: warning Default Credentials
**Default Administrator Account**:
- **Email**: `admin@ppanel.dev`
- **Password**: `password`
**Security**: Change the default credentials immediately after first login.
:::
## Upgrading ## Upgrading
Upgrade PPanel directly from the **Admin Dashboard**. On the dashboard homepage, you can check for new versions and upgrade with one click. Upgrade PPanel directly from the **Admin Dashboard**. On the dashboard homepage, you can check for new versions and upgrade with one click.

View File

@ -113,6 +113,12 @@ get_user_input() {
log_info "✓ Redis password generated" log_info "✓ Redis password generated"
# Administrator configuration
ADMIN_EMAIL="admin-$(generate_secret | cut -c1-8)@ppanel.dev"
ADMIN_PASSWORD=$(generate_secret | cut -c1-16)
log_info "✓ Administrator password generated"
# Generate JWT secret # Generate JWT secret
JWT_SECRET=$(generate_secret) JWT_SECRET=$(generate_secret)
log_info "✓ JWT secret generated" log_info "✓ JWT secret generated"
@ -145,6 +151,10 @@ JwtAuth:
AccessSecret: $JWT_SECRET AccessSecret: $JWT_SECRET
AccessExpire: 604800 AccessExpire: 604800
Administrator:
Email: $ADMIN_EMAIL
Password: "$ADMIN_PASSWORD"
Logger: Logger:
ServiceName: ApiService ServiceName: ApiService
Mode: console Mode: console
@ -343,8 +353,10 @@ show_access_info() {
else else
log_warn "Unable to get public IP, please configure manually for public access" log_warn "Unable to get public IP, please configure manually for public access"
fi fi
echo "" echo "" log_info "Administrator Account:"
log_info "Database Information:" echo " Email: $ADMIN_EMAIL"
echo " Password: $ADMIN_PASSWORD"
echo "" log_info "Database Information:"
echo " MySQL (Container Network):" echo " MySQL (Container Network):"
echo " Address: mysql:3306" echo " Address: mysql:3306"
echo " User: $MYSQL_USER" echo " User: $MYSQL_USER"

View File

@ -113,6 +113,12 @@ get_user_input() {
log_info "✓ 已生成 Redis 密码" log_info "✓ 已生成 Redis 密码"
# 管理员配置
ADMIN_EMAIL="admin-$(generate_secret | cut -c1-8)@ppanel.dev"
ADMIN_PASSWORD=$(generate_secret | cut -c1-16)
log_info "✓ 已生成管理员密码"
# 生成 JWT 密钥 # 生成 JWT 密钥
JWT_SECRET=$(generate_secret) JWT_SECRET=$(generate_secret)
log_info "✓ 已生成 JWT 密钥" log_info "✓ 已生成 JWT 密钥"
@ -145,6 +151,10 @@ JwtAuth:
AccessSecret: $JWT_SECRET AccessSecret: $JWT_SECRET
AccessExpire: 604800 AccessExpire: 604800
Administrator:
Email: $ADMIN_EMAIL
Password: "$ADMIN_PASSWORD"
Logger: Logger:
ServiceName: ApiService ServiceName: ApiService
Mode: console Mode: console
@ -346,6 +356,10 @@ show_access_info() {
log_warn "未能获取公网IP如需外网访问请手动配置" log_warn "未能获取公网IP如需外网访问请手动配置"
fi fi
echo "" echo ""
log_info "管理员账户:"
echo " 邮箱: $ADMIN_EMAIL"
echo " 密码: $ADMIN_PASSWORD"
echo ""
log_info "数据库信息:" log_info "数据库信息:"
echo " MySQL (容器间通信):" echo " MySQL (容器间通信):"
echo " 地址: mysql:3306" echo " 地址: mysql:3306"

View File

@ -211,8 +211,19 @@ docker compose ps
- **用户面板**: `http://your-server-ip:8080` - **用户面板**: `http://your-server-ip:8080`
- **管理后台**: `http://your-server-ip:8080/admin` - **管理后台**: `http://your-server-ip:8080/admin`
::: warning 默认凭据 ::: warning 管理员账户
为了安全起见,首次登录后请立即修改默认管理员密码。 **默认管理员账户**(如果配置文件未设置):
- **邮箱**: `admin@ppanel.dev`
- **密码**: `password`
**一键安装脚本**会自动生成随机的管理员账户并在安装结束时显示:
- **邮箱**: `admin-[8位随机字符]@ppanel.dev`
- **密码**: `[随机生成的16位密码]`
**安全建议**
- 使用一键安装脚本时,请妥善保管脚本生成的凭据
- 首次登录后立即修改密码
- 如果使用默认账户,**必须**在首次登录后修改邮箱和密码
::: :::
### 配置反向代理(可选) ### 配置反向代理(可选)

View File

@ -309,6 +309,14 @@ ps aux | grep ppanel
- **用户面板**: `http://your-server-ip:8080` - **用户面板**: `http://your-server-ip:8080`
- **管理后台**: `http://your-server-ip:8080/admin/` - **管理后台**: `http://your-server-ip:8080/admin/`
::: warning 默认凭据
**默认管理员账号**:
- **邮箱**: `admin@ppanel.dev`
- **密码**: `password`
**安全提醒**: 首次登录后请立即修改默认凭据。
:::
### 配置防火墙 ### 配置防火墙
```bash ```bash

View File

@ -219,7 +219,11 @@ docker compose logs -f ppanel
- **管理后台**: `http://your-server-ip:8080/admin/` - **管理后台**: `http://your-server-ip:8080/admin/`
::: warning 默认凭据 ::: warning 默认凭据
为了安全起见,首次登录后请立即修改默认管理员密码。 **默认管理员账号**(如果未配置时):
- **邮箱**: `admin@ppanel.dev`
- **密码**: `password`
**安全提醒**: 首次登录后请立即修改默认凭据。
::: :::
### 配置反向代理(推荐) ### 配置反向代理(推荐)

View File

@ -232,6 +232,14 @@ docker volume rm ppanel-data
``` ```
::: :::
::: warning 默认凭据
**默认管理员账号**:
- **邮箱**: `admin@ppanel.dev`
- **密码**: `password`
**安全提醒**: 首次登录后请立即修改默认凭据。
:::
## 升级 ## 升级
直接从**管理后台**主页升级 PPanel。在仪表盘主页可以检查新版本并一键升级。 直接从**管理后台**主页升级 PPanel。在仪表盘主页可以检查新版本并一键升级。