Browse Source

代理配置

zhangjie 1 year ago
parent
commit
6c27b39da5
1 changed files with 24 additions and 3 deletions
  1. 24 3
      README.md

+ 24 - 3
README.md

@@ -91,7 +91,28 @@ yarn run lint
 - vue.config.js             # 项目开发环境配置文件
 ```
 
-## TODO
+### 开发模式 本地 Nginx 配置
 
-- 暂无
--
+```bash
+server {
+  listen       8051;
+  server_name  localhost;
+
+  # 知学知考
+  location / {
+    proxy_pass  http://localhost:8056;
+  }
+
+  # 阅卷端
+  location /mark/ {
+    proxy_pass  http://localhost:8059;
+
+  }
+
+  location /api/ {
+    # api代理地址
+    proxy_pass  http://192.168.11.167:7001;
+  }
+
+}
+```