|
@@ -12,6 +12,11 @@
|
|
|
|
|
|
##### 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`
|
|
|
|
|
|
##### 部署
|
|
|
-> 待确认
|
|
|
+```
|
|
|
+# 剑鱼文库 前端配置
|
|
|
+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;
|
|
|
+}
|
|
|
+```
|
|
|
|