Skip to content

Commit 0320b50

Browse files
authored
Merge pull request #31 from tomeai/dev
Dev
2 parents b74403f + 674995f commit 0320b50

File tree

6 files changed

+498
-6
lines changed

6 files changed

+498
-6
lines changed

backend/core/registrar.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def register_app() -> FastAPI:
9898
openapi_url=settings.FASTAPI_OPENAPI_URL,
9999
default_response_class=MsgSpecJSONResponse,
100100
lifespan=register_init,
101+
redirect_slashes=False,
101102
)
102103

103104
# 注册组件

backend/deploy/server.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[program:fastapi_server]
22
directory=/wemcp/backend
3-
command=/usr/local/bin/granian main:app --interface asgi --host 0.0.0.0 --port 8000 --workers 4 --backlog 1024 --workers-kill-timeout 120 --backpressure 2000 --forwarded-allow-ips * --pid-file /var/run/granian.pid --log --log-level info
3+
command=/usr/local/bin/granian main:app --interface asgi --host 0.0.0.0 --port 8000 --workers 4 --backlog 1024 --workers-kill-timeout 120 --backpressure 2000 --pid-file /var/run/granian.pid --log --log-level info
44
user=root
55
autostart=true
66
autorestart=true

frontend/app/privacy/page.tsx

Lines changed: 216 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,216 @@
1+
import LayoutApp from "@/components/layout/layout-app"
2+
import { APP_DOMAIN, APP_NAME } from "@/lib/config"
3+
import type { Metadata } from "next"
4+
5+
export const metadata: Metadata = {
6+
title: `隐私政策 - ${APP_NAME}`,
7+
description: `${APP_NAME} 隐私政策 - 了解我们如何收集、使用和保护您的个人信息。`,
8+
}
9+
10+
export default function PrivacyPage() {
11+
const lastUpdated = "2025年1月1日"
12+
13+
return (
14+
<LayoutApp>
15+
<div className="mx-auto max-w-4xl px-4 py-16 sm:px-6 lg:px-8">
16+
<div className="mb-12">
17+
<h1 className="text-4xl font-bold tracking-tight text-foreground">
18+
隐私政策
19+
</h1>
20+
<p className="mt-3 text-muted-foreground">最后更新:{lastUpdated}</p>
21+
</div>
22+
23+
<div className="prose prose-neutral dark:prose-invert max-w-none space-y-10 text-foreground">
24+
<section>
25+
<p className="text-muted-foreground leading-relaxed">
26+
欢迎使用 {APP_NAME}(以下简称"我们"或"本平台")。我们深知个人信息对您的重要性,并将尽全力保护您的个人信息安全。本隐私政策说明了我们在您使用{" "}
27+
<span className="font-medium">{APP_DOMAIN}</span>{" "}
28+
及相关服务时如何收集、使用、存储和保护您的信息。请您仔细阅读本政策,如果您不同意本政策的任何内容,请停止使用我们的服务。
29+
</p>
30+
</section>
31+
32+
<section>
33+
<h2 className="text-2xl font-semibold text-foreground mb-4">
34+
1. 我们收集的信息
35+
</h2>
36+
<div className="space-y-4 text-muted-foreground leading-relaxed">
37+
<p>根据您使用我们服务的方式,我们可能收集以下类型的信息:</p>
38+
<div>
39+
<h3 className="text-lg font-medium text-foreground mb-2">
40+
1.1 您主动提供的信息
41+
</h3>
42+
<ul className="list-disc list-inside space-y-1.5 pl-2">
43+
<li>账户注册信息:电子邮件地址、用户名、密码</li>
44+
<li>第三方登录信息:通过 GitHub、Google 等第三方平台授权登录时获取的基本信息</li>
45+
<li>用户内容:您在平台上创建的 Agent、配置信息、对话记录、上传的文件</li>
46+
<li>反馈信息:您提交的问题报告、功能建议等</li>
47+
</ul>
48+
</div>
49+
<div>
50+
<h3 className="text-lg font-medium text-foreground mb-2">
51+
1.2 自动收集的信息
52+
</h3>
53+
<ul className="list-disc list-inside space-y-1.5 pl-2">
54+
<li>设备信息:IP 地址、浏览器类型、操作系统版本</li>
55+
<li>使用数据:页面访问记录、功能使用情况、API 调用日志</li>
56+
<li>Cookie 及类似技术:用于维持登录状态和改善用户体验</li>
57+
</ul>
58+
</div>
59+
</div>
60+
</section>
61+
62+
<section>
63+
<h2 className="text-2xl font-semibold text-foreground mb-4">
64+
2. 信息的使用方式
65+
</h2>
66+
<div className="space-y-2 text-muted-foreground leading-relaxed">
67+
<p>我们将收集的信息用于以下目的:</p>
68+
<ul className="list-disc list-inside space-y-1.5 pl-2">
69+
<li>提供、维护和改进我们的服务</li>
70+
<li>处理您的请求并提供技术支持</li>
71+
<li>发送服务通知、更新和安全提醒</li>
72+
<li>分析平台使用情况以优化用户体验</li>
73+
<li>检测、调查和防范欺诈及安全威胁</li>
74+
<li>遵守适用的法律法规要求</li>
75+
</ul>
76+
</div>
77+
</section>
78+
79+
<section>
80+
<h2 className="text-2xl font-semibold text-foreground mb-4">
81+
3. 信息的共享与披露
82+
</h2>
83+
<div className="space-y-4 text-muted-foreground leading-relaxed">
84+
<p>
85+
我们不会出售、出租或交易您的个人信息。在以下情况下,我们可能共享您的信息:
86+
</p>
87+
<ul className="list-disc list-inside space-y-1.5 pl-2">
88+
<li>
89+
<span className="font-medium text-foreground">服务提供商:</span>
90+
与协助我们运营平台的受信任第三方共享,如云服务商、AI 模型提供商,这些方受保密协议约束
91+
</li>
92+
<li>
93+
<span className="font-medium text-foreground">法律要求:</span>
94+
当法律要求或为响应政府机构的合法请求时
95+
</li>
96+
<li>
97+
<span className="font-medium text-foreground">安全保护:</span>
98+
为保护 {APP_NAME}、用户或公众的权利、财产或安全
99+
</li>
100+
<li>
101+
<span className="font-medium text-foreground">业务转让:</span>
102+
在公司合并、收购或资产出售的情况下,我们将提前通知您
103+
</li>
104+
</ul>
105+
</div>
106+
</section>
107+
108+
<section>
109+
<h2 className="text-2xl font-semibold text-foreground mb-4">
110+
4. 数据安全
111+
</h2>
112+
<p className="text-muted-foreground leading-relaxed">
113+
我们采用行业标准的安全措施保护您的信息,包括数据加密传输(HTTPS)、访问控制和定期安全审计。然而,互联网传输并非完全安全,我们无法保证信息传输的绝对安全性。请您妥善保管账户密码,不要将账户凭据分享给他人。
114+
</p>
115+
</section>
116+
117+
<section>
118+
<h2 className="text-2xl font-semibold text-foreground mb-4">
119+
5. 数据留存
120+
</h2>
121+
<p className="text-muted-foreground leading-relaxed">
122+
我们将在您使用服务期间及之后合理必要的时间内保留您的信息,以满足本政策所述目的及遵守法律义务。您可以随时删除您的账户,删除后我们将在合理期限内删除您的个人信息,但法律法规要求保留的除外。
123+
</p>
124+
</section>
125+
126+
<section>
127+
<h2 className="text-2xl font-semibold text-foreground mb-4">
128+
6. Cookie 的使用
129+
</h2>
130+
<p className="text-muted-foreground leading-relaxed">
131+
我们使用 Cookie 和类似追踪技术来维持您的登录状态、记住您的偏好设置,并分析平台使用情况。您可以通过浏览器设置禁用 Cookie,但这可能影响某些功能的正常使用。
132+
</p>
133+
</section>
134+
135+
<section>
136+
<h2 className="text-2xl font-semibold text-foreground mb-4">
137+
7. 第三方服务
138+
</h2>
139+
<p className="text-muted-foreground leading-relaxed">
140+
我们的平台集成了第三方 MCP 工具和 AI 模型服务。当您使用这些服务时,您的相关数据可能会被传输至第三方服务提供商。我们建议您查阅相关第三方的隐私政策以了解其数据处理方式。
141+
</p>
142+
</section>
143+
144+
<section>
145+
<h2 className="text-2xl font-semibold text-foreground mb-4">
146+
8. 未成年人保护
147+
</h2>
148+
<p className="text-muted-foreground leading-relaxed">
149+
我们的服务不面向 16 岁以下的未成年人。如果我们发现在未获得可证实的父母同意的情况下收集了未成年人的信息,我们将采取措施删除该信息。
150+
</p>
151+
</section>
152+
153+
<section>
154+
<h2 className="text-2xl font-semibold text-foreground mb-4">
155+
9. 您的权利
156+
</h2>
157+
<div className="space-y-2 text-muted-foreground leading-relaxed">
158+
<p>您对自己的个人信息享有以下权利:</p>
159+
<ul className="list-disc list-inside space-y-1.5 pl-2">
160+
<li>访问权:获取我们持有的您的个人信息副本</li>
161+
<li>更正权:更正不准确或不完整的个人信息</li>
162+
<li>删除权:在特定情况下要求删除您的个人信息</li>
163+
<li>限制处理权:在特定情况下限制我们处理您的信息</li>
164+
<li>数据可携带权:以结构化格式获取您的数据</li>
165+
<li>撤回同意权:随时撤回您之前给予的同意</li>
166+
</ul>
167+
<p className="mt-3">
168+
如需行使上述权利,请通过下方联系方式与我们联系。
169+
</p>
170+
</div>
171+
</section>
172+
173+
<section>
174+
<h2 className="text-2xl font-semibold text-foreground mb-4">
175+
10. 政策更新
176+
</h2>
177+
<p className="text-muted-foreground leading-relaxed">
178+
我们可能不时更新本隐私政策。重大变更时,我们将通过电子邮件或平台公告通知您。我们建议您定期查阅本政策以了解最新内容。继续使用我们的服务即表示您接受更新后的政策。
179+
</p>
180+
</section>
181+
182+
<section>
183+
<h2 className="text-2xl font-semibold text-foreground mb-4">
184+
11. 联系我们
185+
</h2>
186+
<p className="text-muted-foreground leading-relaxed">
187+
如果您对本隐私政策有任何疑问、意见或投诉,请通过以下方式联系我们:
188+
</p>
189+
<div className="mt-4 rounded-lg border border-border/50 bg-muted/30 p-4 text-muted-foreground">
190+
<p>
191+
<span className="font-medium text-foreground">项目地址:</span>{" "}
192+
<a
193+
href="https://github.com/tomeai/wemcp"
194+
target="_blank"
195+
rel="noopener noreferrer"
196+
className="text-blue-600 hover:underline dark:text-blue-400"
197+
>
198+
github.com/tomeai/wemcp
199+
</a>
200+
</p>
201+
<p className="mt-1">
202+
<span className="font-medium text-foreground">官方网站:</span>{" "}
203+
<a
204+
href={APP_DOMAIN}
205+
className="text-blue-600 hover:underline dark:text-blue-400"
206+
>
207+
{APP_DOMAIN}
208+
</a>
209+
</p>
210+
</div>
211+
</section>
212+
</div>
213+
</div>
214+
</LayoutApp>
215+
)
216+
}

0 commit comments

Comments
 (0)