Browse Source

修改配置

andy 1 year ago
parent
commit
c0fd026661

+ 0 - 51
mainFactory/src/main/resources/ES索引创建命令

@@ -1,51 +0,0 @@
-{
-    "settings": {
-        "refresh_interval": "-1"
-    },
-    "mappings": {
-        "properties": {
-            "ctime": {
-                "type": "date"
-            },
-            "location": {
-                "type": "text"
-            },
-            "dataObjectId": {
-                "type": "text",
-                "fields": {
-                    "keyword": {
-                        "type": "keyword",
-                        "ignore_above": 256
-                    }
-                }
-            },
-            "logContent": {
-                "type": "text"
-            },
-             "success": {
-                "type": "text"
-            },
-             "serviceId": {
-                "type": "text"
-            },
-            "workId": {
-                "type": "text"
-            },
-            "event": {
-                "type": "text"
-            },
-             "outDataContent": {
-                "type": "text"
-            },
-            "iNDataContent": {
-                "type": "text"
-            },
-            "calculationLocation": {
-                "type": "text"
-            },
-            "dataobjectid": {
-                "type": "keyword"
-            }
-        }
-    }
-}

+ 0 - 87
mainFactory/src/main/resources/application-120.yml

@@ -1,87 +0,0 @@
-server:
-  port: ${PORT:18400}
-  servlet:
-    encoding:
-      charset: UTF-8
-      force: true
-      enabled: true
-  codec:
-    max-in-memory-size: -1
-  application:
-    name: mainFactory
-spring:
-  mvc:
-    view:
-      prefix: /
-      suffix: .html
-
-log:
-  url: jdbc:mysql://120.26.64.82:3306/yq_2.0
-  title: root
-  cipher: 123@bigdata
-  type: com.mysql.cj.jdbc.Driver
-
-#mydb:
-#  url: ${MYDB_URL:jdbc:mysql://rm-bp12c6mmk845m73p48o.mysql.rds.aliyuncs.com:3306/test_cen}
-#  title: ${MYDB_USER:bf_dev_epi}
-#  cipher: ${MYDB_PASSWD:Bfepi2021(}
-#  type: ${MYDB_DRIVER:com.mysql.cj.jdbc.Driver}
-#  serviceURL: ${MY_SERVICE_URL:127.0.0.1:8080}
-
-
-mydb:
-  url: ${MYDB_URL:jdbc:mysql://10.211.66.16:3163/DISACenter_2}
-  title: ${MYDB_USER:root}
-  cipher: ${MYDB_PASSWD:QtrmuqDw^bJu$}
-  type: ${MYDB_DRIVER:com.mysql.cj.jdbc.Driver}
-  serviceURL: ${MY_SERVICE_URL:127.0.0.1:8080}
-
-#mydb:
-#  url: ${MYDB_URL:jdbc:mysql://120.26.64.82:3306/DISACenter_2}
-#  title: ${MYDB_USER:root}
-#  cipher: ${MYDB_PASSWD:123@bigdata}
-#  type: ${MYDB_DRIVER:com.mysql.cj.jdbc.Driver}
-#  serviceURL: ${MY_SERVICE_URL:127.0.0.1:8080}
-#mydb:
-#  url: ${MYDB_URL:jdbc:mysql://120.26.64.82:3306/db2_center}
-#  title: ${MYDB_USER:root}
-#  cipher: ${MYDB_PASSWD:123@bigdata}
-#  type: ${MYDB_DRIVER:com.mysql.cj.jdbc.Driver}
-#  serviceURL: ${MY_SERVICE_URL:127.0.0.1:17000}
-
-
-
-
-
-
-#isEs:
-#  open: true
-#  scheme: http
-#  hostname: 120.26.64.82
-#  port: 9200
-#  auth: false
-#  username: ""
-#  password: ""
-#  successIndexName: "success_log_center2"
-#  errorIndexName: "error_log_center2"
-
-isEs:
-  open: false
-  scheme: http
-  hostname: 10.211.67.175
-  port: 9201
-  auth: true
-  username: "elastic"
-  password: "TUihk5^a0J+GkI4!4"
-  successIndexName: "success_log_center"
-  errorIndexName: "error_log_center"
-
-
-service:
-  pool:
-    maxPoolSize: 512
-    corePoolSize: 6
-    queueCapacity: 1024
-    keepAliveSeconds: 60
-    threadNamePrefix: logthreadpool
-    waitForTasksToCompleteOnShutdown: true

+ 0 - 61
mainFactory/src/main/resources/application-prod.yml

@@ -1,61 +0,0 @@
-server:
-  port: ${PORT:18400}
-  servlet:
-    encoding:
-      charset: UTF-8
-      force: true
-      enabled: true
-  codec:
-    max-in-memory-size: -1
-  application:
-    name: mainFactory
-spring:
-  mvc:
-    view:
-      prefix: /
-      suffix: .html
-
-log:
-  url: jdbc:mysql://120.26.64.82:3306/yq_2.0
-  title: root
-  cipher: 123@bigdata
-  type: com.mysql.cj.jdbc.Driver
-mydb:
-  url: ${MYDB_URL:jdbc:mysql://10.211.66.16:3163/DISACenter_2}
-  title: ${MYDB_USER:root}
-  cipher: ${MYDB_PASSWD:QtrmuqDw^bJu$}
-  type: ${MYDB_DRIVER:com.mysql.cj.jdbc.Driver}
-  serviceURL: ${MY_SERVICE_URL:127.0.0.1:8080}
-
-#isEs:
-#  open: true
-#  scheme: http
-#  hostname: 120.26.64.82
-#  port: 9200
-#  auth: false
-#  username: ""
-#  password: ""
-#  successIndexName: "success_log_center2"
-#  errorIndexName: "error_log_center2"
-baseConfig:
-  sourceData : true
-
-isEs:
-  open: false
-  scheme: http
-  hostname: 10.211.67.175
-  port: 9201
-  auth: true
-  username: "elastic"
-  password: "TUihk5^a0J+GkI4!4"
-  successIndexName: "success_log_center"
-  errorIndexName: "error_log_center"
-
-service:
-  pool:
-    maxPoolSize: 512
-    corePoolSize: 6
-    queueCapacity: 1024
-    keepAliveSeconds: 60
-    threadNamePrefix: logthreadpool
-    waitForTasksToCompleteOnShutdown: true

+ 0 - 92
mainFactory/src/main/resources/application-prod2.yml

@@ -1,92 +0,0 @@
-spring:
-  application:
-    name: INTERFACES-GATEWAY-NEW
-  cloud:
-    nacos:
-      discovery:
-        server-addr: 10.211.67.156:8379,10.211.67.164:8631
-        namespace: public
-        group: product
-        username: nacos
-        password: 17f1f4d0bf7e4c9ea0c3d02a9e5efc50
-      config:
-        enabled: false
-
-    gateway:
-      globalcors:
-        corsConfigurations:
-          '[/**]':
-            allowedHeaders: "*"
-            allowedOrigins: "*"
-            allowCredentials: true
-            allowedMethods: "*"
-        default-filters:
-          - DedupeResponseHeader=Access-Control-Allow-Origin Access-Control-Allow-Credentials Vary, RETAIN_UNIQUE
-      discovery:
-        locator:
-          enabled: true #寮€鍚牴鎹湇鍔″悕鍔ㄦ€佽幏鍙栬矾鐢卞湴鍧€
-          lowerCaseServiceId: true
-      routes:
-        - id: GATWAY-AUTHENTICATION
-          #  uri: http://localhost:8999
-          uri: http://10.211.67.150:18046
-          predicates:
-            - Path=/**
-          filters:
-            - StripPrefix=0  # 杞彂杩囨护鍓嶇紑涓暟\
-        - id: apache
-          uri: http://10.211.67.150:8093
-          predicates:
-              # 鍖归厤璺緞杞彂
-            - Method=GET
-
-
-gatway:
-  url:
-    upload:
-      - /api/4A/GetToken
-      - /api/4A/VerificationCode
-      - /api/4A/RefreshCode
-      - /api/4A/RemoveCode
-      - /api/4A/RemoveToken
-      - /api/fs4a/Logout/v1
-      - /api/4A/LoginGetToken
-      - /api/4A/CheckLoginToken
-      - /api/4A/LoginRefreshToken
-      - /api/4A/LogoutToken
-      - /api/fs4a/Login/v1
-      - /api/fs4a/GetSystemSet/v1
-      - /api/fs4a/GetCheckCode/v1
-    guohang:
-      - /baggageDC/openApi/gettoken
-      - /baggageDC/openApi/refreshtoken
-      - /outSide/openApi/fulltrackinfo
-      - /token
-      - /kafka
-      - /foxlibc/application-token
-      - /foxlibc/sign-in
-      - /foxlibc/system/setting
-      - /foxlibc/verification-code
-
-  config:
-    jwt:
-      header-name: toekn
-      skip-a-uth-url:
-        - /api/4A/GetToken
-        - /RefreshToken
-        - /api/4A/GetSystemSet/v1
-        - /api/4A/GetCheckCode/v1
-        - /api/4A/Login/v1
-logging:
-  level:
-    org.springframework.cloud.gateway.filter.LoadBalancerClientFilter: TRACE
-feign:
-  client:
-    config:
-      default:
-        connectTimeout: 100000
-        readTimeout: 600000
-server:
-  port: 18046
-
-

+ 0 - 50
mainFactory/src/main/resources/application-zxx.yml

@@ -1,50 +0,0 @@
-server:
-  port: ${PORT:8046}
-  servlet:
-    encoding:
-      charset: UTF-8
-      force: true
-      enabled: true
-  codec:
-    max-in-memory-size: -1
-  application:
-    name: mainFactory
-spring:
-  mvc:
-    view:
-      prefix: /
-      suffix: .html
-
-log:
-  url: jdbc:mysql://10.199.7.11:3306/DPFBLOG
-  title: bigdata
-  cipher: ml9*pO4866
-  type: com.mysql.cj.jdbc.Driver
-
-mydb:
-  url: ${MYDB_URL:jdbc:mysql://10.199.7.11:3306/DISACenter_2}
-  title: ${MYDB_USER:bigdata}
-  cipher: ${MYDB_PASSWD:ml9*pO4866}
-  type: ${MYDB_DRIVER:com.mysql.cj.jdbc.Driver}
-  serviceURL: ${MY_SERVICE_URL:10.199.1.11:8046}
-
-isEs:
-  open: false
-  scheme: http
-  hostname: 10.211.67.175
-  port: 9201
-  auth: true
-  username: "elastic"
-  password: "TUihk5^a0J+GkI4!4"
-  successIndexName: "success_log_center"
-  errorIndexName: "error_log_center"
-
-
-service:
-  pool:
-    maxPoolSize: 512
-    corePoolSize: 6
-    queueCapacity: 1024
-    keepAliveSeconds: 60
-    threadNamePrefix: logthreadpool
-    waitForTasksToCompleteOnShutdown: true

+ 48 - 2
mainFactory/src/main/resources/application.yml

@@ -1,3 +1,49 @@
+server:
+  port: 8080
+  servlet:
+    encoding:
+      charset: UTF-8
+      force: true
+      enabled: true
 spring:
 spring:
-  profiles:
-    active: prod
+  mvc:
+    view:
+      prefix: /
+      suffix: .html
+  application:
+    name: data-base
+
+log:
+  url: jdbc:mysql://172.23.61.11/DPFBLOG
+  title: root
+  cipher: 26F#5utq$&2v
+  type: com.mysql.cj.jdbc.Driver
+mydb:
+  url: jdbc:mysql://172.23.61.11/db2_cen
+  title: root
+  cipher: 26F#5utq$&2v
+  type: com.mysql.cj.jdbc.Driver
+  serviceURL: 127.0.0.1:8080
+
+baseConfig:
+  sourceData : true
+
+isEs:
+  open: false
+  scheme: http
+  hostname: 0.0.0.0
+  port: 9201
+  auth: true
+  username: "elastic"
+  password: "TUihk5^a0J+GkI4!4"
+  successIndexName: "success_log_center"
+  errorIndexName: "error_log_center"
+
+service:
+  pool:
+    maxPoolSize: 512
+    corePoolSize: 6
+    queueCapacity: 1024
+    keepAliveSeconds: 60
+    threadNamePrefix: logthreadpool
+    waitForTasksToCompleteOnShutdown: true

+ 0 - 11
mainFactory/src/main/resources/start.sh

@@ -1,11 +0,0 @@
-#!/bin/bash
- 
-source /etc/profile
-sleep 5
- 
-pid=$(ps -ef | grep  端口号 | grep -v grep | awk '{print $2}')
- 
-kill -15 $pid
-sleep 5
- 
-nohup java  -Dserver.port=端口号 -Ddatahandler.mydb.serviceURL=机器表中对应的服务地址 -Dspring.profiles.active=prod   -Dspring.application.name=服务名称  -Dspring.config.additional-location=/app/workspace/quz/application-prod.yml -jar /app/workspace/quz/mainFactory-0.0.1-SNAPSHOT.jar > nohup.out 2>&1 &