- Removed Gorse-related configurations, handlers, and dependencies from the codebase. - Introduced HotRank feature with configuration options for ranking posts based on recent activity. - Updated application structure to support HotRank processing, including new caching mechanisms and database interactions. - Cleaned up related DTOs and repository methods to reflect the removal of Gorse and the addition of HotRank functionality.
47 lines
1.7 KiB
Bash
Executable File
47 lines
1.7 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# carrot_bbs Docker 启动脚本
|
|
# 使用前请确保已经构建好镜像: docker build -t carrot_bbs:latest .
|
|
|
|
docker run -d \
|
|
--name carrot_bbs \
|
|
--network 1panel-network \
|
|
-p 8080:8080 \
|
|
-e APP_DATABASE_TYPE=postgres \
|
|
-e APP_DATABASE_POSTGRES_HOST=1Panel-postgresql-t0g7 \
|
|
-e APP_DATABASE_POSTGRES_USER=carrot_bbs \
|
|
-e APP_DATABASE_POSTGRES_PASSWORD=We5Zyb6WzCa36tCT \
|
|
-e APP_DATABASE_POSTGRES_DBNAME=carrot_bbs \
|
|
-e APP_REDIS_TYPE=redis \
|
|
-e APP_REDIS_REDIS_HOST=1Panel-redis-dfmM \
|
|
-e APP_REDIS_REDIS_PASSWORD=redis_j8CMza \
|
|
-e APP_S3_ENDPOINT=files.littlelan.cn \
|
|
-e APP_S3_ACCESS_KEY=E6bMcYkQzCldRTrtmhvi \
|
|
-e APP_S3_SECRET_KEY=4R9yjmwKNoHphiBkv05Oa8WGEIFbnlZeTLXfSgx3 \
|
|
-e APP_S3_BUCKET=test \
|
|
-e APP_S3_DOMAIN=files.littlelan.cn \
|
|
-e APP_HOT_RANK_ENABLED=true \
|
|
-e APP_HOT_RANK_REFRESH_INTERVAL_SECONDS=300 \
|
|
-e APP_HOT_RANK_TOP_N=100 \
|
|
-e APP_HOT_RANK_RECENT_WINDOW_HOURS=168 \
|
|
-e APP_HOT_RANK_RECENT_FETCH_LIMIT=500 \
|
|
-e APP_HOT_RANK_CANDIDATE_CAP=800 \
|
|
-e APP_OPENAI_ENABLED=true \
|
|
-e APP_OPENAI_BASE_URL=https://api.littlelan.cn/ \
|
|
-e APP_OPENAI_API_KEY=sk-y7LOeKsNfzbZWTRSFsTs79jd8WYlezbIVgdVPgMvG4Xz2AlV \
|
|
-e APP_OPENAI_MODERATION_MODEL=qwen3.5-122b \
|
|
-e APP_OPENAI_MODERATION_MAX_IMAGES_PER_REQUEST=1 \
|
|
-e APP_OPENAI_REQUEST_TIMEOUT=30 \
|
|
-e APP_OPENAI_STRICT_MODERATION=false \
|
|
-e APP_EMAIL_ENABLED=true \
|
|
-e APP_EMAIL_HOST=smtp.exmail.qq.com \
|
|
-e APP_EMAIL_PORT=465 \
|
|
-e APP_EMAIL_USERNAME=no-reply@qczlit.cn \
|
|
-e APP_EMAIL_PASSWORD=HbvwwVjRyiWg9gsK \
|
|
-e APP_EMAIL_FROM_ADDRESS=no-reply@qczlit.cn \
|
|
-e APP_EMAIL_FROM_NAME="Carrot BBS" \
|
|
-e APP_EMAIL_USE_TLS=true \
|
|
-e APP_EMAIL_INSECURE_SKIP_VERIFY=false \
|
|
-e APP_EMAIL_TIMEOUT=15 \
|
|
carrot-bbs-backend:20260309-181055
|