Procházet zdrojové kódy

添加es服务代理

lrf před 8 měsíci
rodič
revize
31ad8f3d0f

+ 4 - 4
README.md

@@ -7,10 +7,10 @@
   * [x] 5.重新整理异常:
   * [x] 6.需要将条件转换为sql,sql转换器!,先试试通过pg的方式连接,不行再说,有nodejs驱动,不行就全都自己写
   * [x] 7.上传于读取基础接口,之后再判断是否有静态文件访问权限的问题
-  * [ ] 8.数据库日志
-  * [ ] 9.敏感词过滤,
-  * [ ] 10.文本内容屏
-  * [ ] 11.用户行为采集
+  * [ ] 8.数据库日志,需要与业务结合
+  * [x] 9.敏感词过滤,在home.controller的test函数有使用方式
+  * [x] 10.文本内容屏蔽,可以参考敏感词,使用敏感词依赖进行屏
+  * [ ] 11.用户行为采集 ,通过访问前端项目进行记录
   * [x] x.对数据进行解密
   * [x] x2.服务接口只接收本地请求
 

+ 2 - 1
src/config/config.local.ts

@@ -3,6 +3,7 @@ const redisHost = '10.120.114.6';
 const redisPwd = '1234qwer!@#$';
 const redisDB = 0;
 const coreApiPrefix = '/cxyy/api';
+const coreEsPrefix = '/cxyy/es';
 const loginSign = 'cxyy';
 export default {
   // use for cookie sign key, should change to your own and keep security
@@ -22,7 +23,7 @@ export default {
       [coreApiPrefix]: {
         baseURL: 'http://127.0.0.1:9700',
       },
-      '/test/api': {
+      [coreEsPrefix]: {
         baseURL: 'http://127.0.0.1:9701',
       },
     },

+ 2 - 1
src/config/config.prod.ts

@@ -3,6 +3,7 @@ const redisHost = 'host.docker.internal'; // 10.120.114.6
 const redisPwd = '1234qwer!@#$';
 const redisDB = 0;
 const coreApiPrefix = '/cxyy/api';
+const coreEsPrefix = '/cxyy/es';
 const loginSign = 'cxyy';
 export default {
   // use for cookie sign key, should change to your own and keep security
@@ -22,7 +23,7 @@ export default {
       [coreApiPrefix]: {
         baseURL: 'http://127.0.0.1:9700',
       },
-      '/test/api': {
+      [coreEsPrefix]: {
         baseURL: 'http://127.0.0.1:9701',
       },
     },

+ 2 - 1
src/config/config.self.ts

@@ -3,6 +3,7 @@ const redisHost = 'localhost';
 const redisPwd = '123456';
 const redisDB = 0;
 const coreApiPrefix = '/cxyy/api';
+const coreEsPrefix = '/cxyy/es';
 const loginSign = 'cxyy';
 export default {
   // use for cookie sign key, should change to your own and keep security
@@ -22,7 +23,7 @@ export default {
       [coreApiPrefix]: {
         baseURL: 'http://127.0.0.1:9700',
       },
-      '/test/api': {
+      [coreEsPrefix]: {
         baseURL: 'http://127.0.0.1:9701',
       },
     },

+ 1 - 1
src/controller/home.controller.ts

@@ -5,7 +5,7 @@ import { SingleSignOnService } from '../service/singleSignOn.service';
 import { PermissionService } from '../service/permission.service';
 import { PemService } from '../service/pem.service';
 import SensitiveWordTool from 'sensitive-word-tool';
-@Controller('/cxyy/api')
+@Controller('/cxyy')
 export class HomeController {
   @Inject()
   ctx: Context;