Browse Source

feat: 新增部署说明

zhangyuhan 4 years ago
parent
commit
e054a56892
1 changed files with 18 additions and 1 deletions
  1. 18 1
      README.md

+ 18 - 1
README.md

@@ -12,6 +12,11 @@
 
 
 ##### 1.web用xweb框架
 ##### 1.web用xweb框架
 
 
+```
+3.11 部署目录 
+移动端 /opt/nginx/nginx/html/page_docs_app/
+PC端 /opt/nginx/nginx/html/page_docs/
+```
 
 
 #### 移动端
 #### 移动端
 
 
@@ -70,5 +75,17 @@
 3. 访问`/swordfish/frontPage/docs/sess/index`
 3. 访问`/swordfish/frontPage/docs/sess/index`
 
 
 ##### 部署
 ##### 部署
-> 待确认
+```
+# 剑鱼文库 前端配置
+location ^~/page_docs {
+    if ($uri ~ \.html$) {
+		add_header         Pragma   no-cache;
+        add_header         Expires  0;
+        add_header         Cache-Control no-cache,no-store,must-revalidate;
+    }
+    root /opt/nginx/nginx/html/;
+    index index.html;
+    try_files $uri $uri/ /page_docs/index.html;
+}
+```