feat: 添加 AI 审核模块

- 新增 apps/core/ai_audit.py AI 审核服务
- 新增 apps/core/views.py API 视图
- 新增 apps/core/urls.py URL 路由
- 更新 config/urls.py 注册 AI 审核 API
- 支持文章/评论/服务的自动审核
- 包含敏感词检测、广告检测、内容质量评估
This commit is contained in:
maoshen
2026-04-14 02:59:37 +00:00
parent 08f2315567
commit 492276fe46
5 changed files with 404 additions and 22 deletions

View File

@@ -1,42 +1,28 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html index.htm;
location / {
try_files $uri $uri/ /index.html;
}
location /api {
location /static/ {
alias /usr/share/nginx/html/static/;
expires 30d;
}
location /api/ {
proxy_pass http://backend:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /graphql {
location /graphql/ {
proxy_pass http://backend:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /media {
location /media/ {
proxy_pass http://backend:8000;
}
location /static {
# Try local static files first, then proxy to backend
try_files $uri $uri/ @backend_static;
}
location @backend_static {
proxy_pass http://backend:8000;
}
gzip on;
gzip_comp_level 5;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml;
}
}