Version: 0.9.83.dev.260508

后端:
1.关闭了注册接口

前端:
1.改造了主页

仓库:
1.对部署做了一些改善
This commit is contained in:
Losita
2026-05-08 18:29:49 +08:00
parent 25a608eaeb
commit cc98b62ad8
11 changed files with 854 additions and 346 deletions

View File

@@ -1,14 +1,30 @@
server {
listen 80;
server_name _;
server_name smartmate.lecspace.com _;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
http2 on;
server_name smartmate.lecspace.com;
resolver 127.0.0.11 ipv6=off valid=30s;
ssl_certificate /etc/nginx/certs/tls.crt;
ssl_certificate_key /etc/nginx/certs/tls.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_session_timeout 1d;
ssl_session_cache shared:SSL:10m;
ssl_session_tickets off;
root /usr/share/nginx/html;
index index.html;
# 1. 生产环境统一由前端容器反代后端 API前端继续使用相对路径 /api/v1。
# 2. 关闭代理缓冲,避免 Agent SSE 流式响应被 Nginx 缓存后前端长时间收不到数据。
# 2. 关闭代理缓冲,避免 Agent SSE 响应被 Nginx 缓存后前端长时间收不到数据。
location /api/ {
proxy_pass http://api:8080;
set $api_upstream http://api:8080;
proxy_pass $api_upstream;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
@@ -22,7 +38,7 @@ server {
}
# 1. Vue Router 走 history 模式时,静态资源未命中需要回落到 index.html。
# 2. 这里负责接口代理,接口统一由上面的 /api location 处理。
# 2. 这里负责前端页面回落,接口流量统一由上面的 /api 路由处理。
location / {
try_files $uri $uri/ /index.html;
}

File diff suppressed because it is too large Load Diff