frontend 兼容

This commit is contained in:
1iaan
2026-04-06 11:38:45 +08:00
parent f433490e0d
commit 94bdba930e
323 changed files with 49507 additions and 34744 deletions

View File

@@ -0,0 +1,20 @@
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://ai-chat-backend:7080/api/;
}
}