chenxz 7 năm trước cách đây
mục cha
commit
f2173ff986

+ 0 - 95
mooctest-site-server/src/main/resources/application.yaml

@@ -18,102 +18,7 @@ spring:
         naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
     # The SQL dialect makes Hibernate generate better SQL for the chosen database
     properties.hibernate.dialect: org.hibernate.dialect.MySQL5Dialect
-    
----
 
-spring:
-    profiles: dev
-    datasource:
-        url: jdbc:mysql://101.37.175.111:3306/mooctest_main_dev?useUnicode=yes&characterEncoding=UTF-8
-        username: mooctest
-        password: secr3t!
-    dubbo:
-        application.name: local-dubbo-main-site-provider-consumer3
-        registry.address: zookeeper://101.37.175.111:2181
-        protocol.name: dubbo
-        protocol.port: 20884
-        scan: cn.iselab.mooctest.site.rpc
-        monitor.protocol: registry
-        timeout: 120000
-        shutdown.hook: true
-    rabbitmq:
-        host: 121.199.32.102
-        port: 5672
-        username: mooctest
-        password: mooctestPassword
-        virtual-host: dev
-    redis:
-        host: 114.55.91.27
-        port: 6379
-        password:
-        pool:
-            max-active: 8
-            max-wait: -1
-            max-idle: 8
-            min-idle: 0
-
-featureSwitch:
-    default:
-        role: worker
-    client:
-        sms: true
-        email: true
-        oss: true
-        webide: true
-        wechat: false
-        medal: true
-    server:
-        rpcDevService: true
-        mongoServer: true
-        UserService: true
-        enableRabbitListener: false
-        initExamScheduler: false
-mongodb:
-    host: 114.55.91.27
-    port: 80
-    db: testGraph
-    reportCollection: report
-    mutationCollection: mutation
-    caseGraghCollection: caseGraph
-    caughtNodeCollection: caughtNode
-    userCatchCollection: userCatch
-    catchCollection: catch
-    sumCatchCollection: sumCatch
-    competeAnalysisCollection: competeAnalysisResult
-    difficultAnalysisCollection: difficultAnalysisResult
-    timeAnalysisCollection: timeAnalysisResult
-    targetGraphCollection: targetGraph
-    base64Auth: Basic YWRtaW46Y2hhbmdlaXQ=
-
-oss:
-    bucketName:
-        dev: mooctest-dev
-        static: mooctest-mutation
-        main: mooctest-site-dev
-        app: kikbug-public
-        target: target
-    bucket: mooctest-site-dev
-    accessKeyId: IvS323TIcWUT57MG
-    accessKeySecret: dYml7rvT8stQkoSjMYlfRTxNj9dEsI
-    endPoint: http://oss-cn-shanghai.aliyuncs.com
-    expireTime: 600
-    region: oss-cn-shanghai
-    roleArn: acs:ram::1525065817051996:role/oss-archives
-
-server:
-    port: 8080
-
-logging.config: classpath:log4j2.yaml
-#logging.access.enabled: false
-
-host: http://local.mooctest.net
-
-webIDE:
-    address: 47.97.4.113:8000
-
-celeryServer:
-    host: 121.199.32.102
-    port: 5002
 
 ---
 # 私有云服务环境

+ 3 - 3
mooctest-site-server/src/main/resources/bootstrap.yaml

@@ -4,10 +4,10 @@ spring:
         name: mooctest-site-server
     cloud:
         zookeeper:
-            enabled: false  # true:开启zookeeper外部化配置, false:读取本地配置;
+            enabled: true  # true:开启zookeeper外部化配置, false:读取本地配置;
             connect-string: 101.37.175.111:2181
             config:
                 root: /config
-                enabled: false
+                enabled: true
                 watcher:
-                    enabled: false
+                    enabled: true