Browse Source

feat: 新增nginx说明

zhangyuhan 4 years ago
parent
commit
77e3b7f7c4
2 changed files with 11 additions and 0 deletions
  1. 0 0
      .drone.yml
  2. 11 0
      README.md

+ 0 - 0
.drone.yml


+ 11 - 0
README.md

@@ -77,6 +77,17 @@ PC端 /opt/nginx/nginx/html/page_docs/
 ##### 部署
 ```
 # 剑鱼文库 前端配置
+location ^~/page_docs_app {
+    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_app/index.html;
+}
+
 location ^~/page_docs {
     if ($uri ~ \.html$) {
 		add_header         Pragma   no-cache;