瀏覽代碼

关闭服务

zkn 1 周之前
父節點
當前提交
165def85d7
共有 2 個文件被更改,包括 36 次插入11 次删除
  1. 23 0
      maintenance/index.html
  2. 13 11
      nginx.conf

+ 23 - 0
maintenance/index.html

@@ -0,0 +1,23 @@
+<!doctype html>
+<html lang="zh-CN">
+<head>
+  <meta charset="utf-8">
+  <title>服务暂停中</title>
+  <meta name="viewport" content="width=device-width, initial-scale=1">
+  <style>
+    body { margin:0; font-family: "Microsoft YaHei", Arial, sans-serif; background:#f7f8fa; color:#222; }
+    .wrap { max-width: 760px; margin: 12vh auto; padding: 32px; background:#fff; border-radius:12px; box-shadow:0 6px 20px rgba(0,0,0,.08); }
+    h1 { margin:0 0 12px; font-size:28px; }
+    p { margin:8px 0; line-height:1.7; color:#555; }
+    .hint { margin-top:16px; font-size:14px; color:#888; }
+  </style>
+</head>
+<body>
+  <div class="wrap">
+    <h1>AI 安全助手服务暂停中</h1>
+    <p>为了系统升级与优化,我们暂时停止对外服务。</p>
+    <p>给您带来不便,敬请谅解。</p>
+    <p class="hint">如有紧急需求,请联系管理员或稍后再试。</p>
+  </div>
+</body>
+</html>

+ 13 - 11
nginx.conf

@@ -169,17 +169,19 @@ server {
 
     # ==================== 默认路由 (前端静态资源) ====================
     location / {
-        proxy_pass http://127.0.0.1:22001;
-        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;
-        # SSE 流式响应
-        proxy_buffering off;
-        proxy_cache off;
-        proxy_http_version 1.1;
-        proxy_read_timeout 3600s;
-        proxy_send_timeout 3600s;
+        # proxy_pass http://127.0.0.1:22001;
+        # 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;
+        # # SSE 流式响应
+        # proxy_buffering off;
+        # proxy_cache off;
+        # proxy_http_version 1.1;
+        # proxy_read_timeout 3600s;
+        # proxy_send_timeout 3600s;
+        root /opt/www/shudao-main/maintenance;
+        try_files $uri /index.html;
     }
 
     # ==================== 错误页面 ====================