.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
DB_HOST
PostgreSQL(docker-compose 默认使用内置数据库)
DB_PORT
DB_NAME
DB_USER
DB_PASSWORD
secret
INIT_ADMIN_PASSWORD
secret
首次启动自动创建 admin 账号(默认密码 admintest,留空则不创建)
PANEL_BASE_URL
1Panel 网关地址(也可在管理后台配置)
PANEL_API_KEY
secret
1Panel API 密钥
PANEL_API_TIMEOUT
1Panel 请求超时(毫秒,默认 10000)
brew install flyctl && fly launch --from https://github.com/1panel-dev/ai-portal
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/1panel-dev/ai-portal
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/1panel-dev/ai-portal