Files
chengshishouce/frontend/nginx.conf
maoshen 492276fe46 feat: 添加 AI 审核模块
- 新增 apps/core/ai_audit.py AI 审核服务
- 新增 apps/core/views.py API 视图
- 新增 apps/core/urls.py URL 路由
- 更新 config/urls.py 注册 AI 审核 API
- 支持文章/评论/服务的自动审核
- 包含敏感词检测、广告检测、内容质量评估
2026-04-14 02:59:37 +00:00

29 lines
795 B
Nginx Configuration File

server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html index.htm;
location / {
try_files $uri $uri/ /index.html;
}
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/ {
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/ {
proxy_pass http://backend:8000;
}
}