feat(server): 新增云端缓存与同步服务端骨架

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Developer
2026-03-18 00:27:04 +08:00
parent df12a6ac72
commit 6764f4c53b
14 changed files with 2183 additions and 0 deletions

14
server/.env.example Normal file
View File

@@ -0,0 +1,14 @@
PORT=3200
HOST=127.0.0.1
LOG_LEVEL=info
MYSQL_HOST=127.0.0.1
MYSQL_PORT=3306
MYSQL_USER=magnet_app
MYSQL_PASSWORD=change_me
MYSQL_DATABASE=magnet_cloud
APP_ENCRYPTION_SECRET=change_this_to_a_long_random_secret
SHARED_CACHE_WRITE_TOKEN=change_this_to_a_long_random_write_token
REDIS_URL=redis://127.0.0.1:6379
REDIS_ENABLED=true