Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM alpine:latest
FROM alpine:3.23

# set the time zone to Beijing Time in the Eastern 8th Time Zone
ARG TZ=Asia/Shanghai
RUN apk add --no-cache tzdata && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone
cp /usr/share/zoneinfo/${TZ} /etc/localtime && \
echo "${TZ}" > /etc/timezone

WORKDIR /app

Expand Down
30 changes: 17 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,21 @@ LINUX DO CDK 是一个为 Linux Do 社区打造的内容分发工具平台,旨
## 🛠️ 技术栈

### 后端
- **Go 1.24** - 主要开发语言
- **Gin** - Web 框架
- **GORM** - ORM 框架
- **Redis** - 缓存和会话存储
- **MySQL** - 主数据库
- **OpenTelemetry** - 可观测性
- **Swagger** - API 文档
- **[Go 1.24](https://go.dev/doc)** - 主要开发语言
- **[Gin](https://github.com/gin-gonic/gin)** - Web 框架
- **[GORM](https://github.com/go-gorm/gorm)** - ORM 框架
- **[Redis](https://github.com/redis/redis)** - 缓存和会话存储
- **[MySQL](https://www.mysql.com)** - 主数据库
- **[OpenTelemetry](https://opentelemetry.io)** - 可观测性
- **[Swagger](https://github.com/swaggo/swag)** - API 文档

### 前端
- **Next.js 15** - React 框架
- **React 19** - UI 库
- **TypeScript** - 类型安全
- **Tailwind CSS 4** - 样式框架
- **Shadcn UI** - 组件库
- **Lucide Icons** - 图标库
- **[Next.js 15](https://github.com/vercel/next.js)** - React 框架
- **[React 19](https://github.com/facebook/react)** - UI 库
- **[TypeScript](https://github.com/microsoft/TypeScript)** - 类型安全
- **[Tailwind CSS 4](https://github.com/tailwindlabs/tailwindcss)** - 样式框架
- **[Shadcn UI](https://github.com/shadcn-ui/ui)** - 组件库
- **[Lucide Icons](https://github.com/lucide-icons/lucide)** - 图标库

## 📋 环境要求

Expand Down Expand Up @@ -272,3 +272,7 @@ docker run -d -p 8000:8000 linux-do-cdk
## ❤️ 致谢

感谢所有为本项目做出贡献的开发者和 Linux Do 社区的支持!

## 📈 项目趋势

[![Star History Chart](https://api.star-history.com/svg?repos=linux-do/cdk&type=Date)](https://star-history.com/#linux-do/cdk&Date)
5 changes: 3 additions & 2 deletions config.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ app:
projectApp:
hidden_threshold: 5 # project hidden threshold
deduction_per_offense: 5 # deduction per offense
# 0-4级创建项目频率限制
# rate limit for creating projects for level 0-4
create_project_rate_limit:
- interval_seconds: 60
max_count: 1
Expand All @@ -36,6 +36,7 @@ oauth2:
client_id: "<OAUTH2_CLIENT_ID>"
client_secret: "<OAUTH2_CLIENT_SECRET>"
redirect_uri: "<OAUTH2_REDIRECT_URI>"
# alternative domain: connect.linuxdo.org
authorization_endpoint: "https://connect.linux.do/oauth2/authorize"
token_endpoint: "https://connect.linux.do/oauth2/token"
user_endpoint: "https://connect.linux.do/api/user"
Expand Down Expand Up @@ -66,7 +67,7 @@ clickhouse:
conn_max_lifetime: 3600
dial_timeout: 5

# Redis配置
# Redis config
redis:
enabled: true
host: "127.0.0.1"
Expand Down
Loading