|
@@ -0,0 +1,164 @@
|
|
|
|
+spring.profiles.active: dev
|
|
|
|
+
|
|
|
|
+spring:
|
|
|
|
+ cache:
|
|
|
|
+ guava:
|
|
|
|
+ spec: expireAfterWrite=30s
|
|
|
|
+ datasource:
|
|
|
|
+ driver-class-name: com.mysql.jdbc.Driver
|
|
|
|
+ # Keep the connection alive if idle for a long time (needed in production)
|
|
|
|
+ testWhileIdle: true
|
|
|
|
+ validationQuery: SELECT 1
|
|
|
|
+ # Show or not log for each sql query
|
|
|
|
+ jpa:
|
|
|
|
+ show-sql: true
|
|
|
|
+ # Hibernate ddl auto (create, create-drop, update)
|
|
|
|
+ hibernate:
|
|
|
|
+ ddl-auto: validate
|
|
|
|
+ #hbm2ddl.auto: update
|
|
|
|
+ # Naming strategy
|
|
|
|
+ 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
|
|
|
|
+
|
|
|
|
+auth:
|
|
|
|
+ escapeUrls:
|
|
|
|
+ - /api/common/login
|
|
|
|
+ - /api/common/logout
|
|
|
|
+ - /api/common/register
|
|
|
|
+ - /api/common/captcha
|
|
|
|
+ - /api/common/manager
|
|
|
|
+ - /api/common/worker
|
|
|
|
+ - /api/common/contest
|
|
|
|
+ - /api/common/password/forget
|
|
|
|
+ - /api/common/password/reset
|
|
|
|
+
|
|
|
|
+oss:
|
|
|
|
+ endpoint: http://oss-cn-shanghai.aliyuncs.com
|
|
|
|
+ region: cn-shanghai
|
|
|
|
+ accessId: IvS323TIcWUT57MG
|
|
|
|
+ accessKey: dYml7rvT8stQkoSjMYlfRTxNj9dEsI
|
|
|
|
+ expireTime: 600
|
|
|
|
+ roleArn: acs:ram::1525065817051996:role/oss-archive
|
|
|
|
+
|
|
|
|
+aliOSS:
|
|
|
|
+ endPoint: oss-cn-shanghai.aliyuncs.com
|
|
|
|
+ accessKeyId: IvS323TIcWUT57MG
|
|
|
|
+ accessKeySecret: dYml7rvT8stQkoSjMYlfRTxNj9dEsI
|
|
|
|
+ bucketName:
|
|
|
|
+ dev: mooctest-dev
|
|
|
|
+ static: mooctest-mutation
|
|
|
|
+ main: mooctest-site
|
|
|
|
+---
|
|
|
|
+# 开发环境
|
|
|
|
+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.protocal: registry
|
|
|
|
+ timeout: 120000
|
|
|
|
+
|
|
|
|
+rpcServer:
|
|
|
|
+ port: 9100
|
|
|
|
+ group: iselab
|
|
|
|
+ zkAddress: 118.178.131.206:2181
|
|
|
|
+
|
|
|
|
+server:
|
|
|
|
+ port: 8080
|
|
|
|
+
|
|
|
|
+cookie:
|
|
|
|
+ encryptionKey: helloiselab@2017
|
|
|
|
+ domain: .localhost
|
|
|
|
+
|
|
|
|
+oss:
|
|
|
|
+ bucket: mooctest-site-dev
|
|
|
|
+
|
|
|
|
+logging.config: classpath:log4j2.yaml
|
|
|
|
+#logging.access.enabled: false
|
|
|
|
+
|
|
|
|
+host: http://local.mooctest.net
|
|
|
|
+
|
|
|
|
+---
|
|
|
|
+# 测试服务环境
|
|
|
|
+spring:
|
|
|
|
+ profiles: pre
|
|
|
|
+ datasource:
|
|
|
|
+ url: jdbc:mysql://101.37.175.111:3306/mooctest_main_dev?useUnicode=yes&characterEncoding=UTF-8
|
|
|
|
+ username: mooctest
|
|
|
|
+ password: secr3t!
|
|
|
|
+ dubbo:
|
|
|
|
+ application.name: pre-dubbo-main-site-provider-consumer
|
|
|
|
+ registry.address: zookeeper://101.37.175.111:2181
|
|
|
|
+ protocol.name: dubbo
|
|
|
|
+ protocol.port: 20883
|
|
|
|
+ protocol.host: 101.37.175.111
|
|
|
|
+ scan: cn.iselab.mooctest.site.rpc
|
|
|
|
+ monitor.protocal: registry
|
|
|
|
+
|
|
|
|
+server:
|
|
|
|
+ port: 9001
|
|
|
|
+
|
|
|
|
+rpcServer:
|
|
|
|
+ port: 9100
|
|
|
|
+ group: iselab
|
|
|
|
+ zkAddress: localhost:2181
|
|
|
|
+
|
|
|
|
+logging.config: classpath:log4j2.online.yaml
|
|
|
|
+logging.access.directory: /home/shared/log
|
|
|
|
+
|
|
|
|
+spring.jpa.show-sql: false
|
|
|
|
+
|
|
|
|
+cookie:
|
|
|
|
+ encryptionKey: helloiselab@2017
|
|
|
|
+ domain: .mooctest.net
|
|
|
|
+
|
|
|
|
+oss:
|
|
|
|
+ bucket: mooctest-site-dev
|
|
|
|
+
|
|
|
|
+host: http://test.mooctest.net
|
|
|
|
+
|
|
|
|
+---
|
|
|
|
+# 线上服务环境
|
|
|
|
+spring:
|
|
|
|
+ profiles: online
|
|
|
|
+ datasource:
|
|
|
|
+ url: jdbc:mysql://10.24.153.13/mooctest_main?useUnicode=yes&characterEncoding=UTF-8
|
|
|
|
+ username: liuzicong
|
|
|
|
+ password: secr3t!
|
|
|
|
+ dubbo:
|
|
|
|
+ application.name: dubbo-consumer-online
|
|
|
|
+ registry.address: zookeeper://118.178.131.206:2181
|
|
|
|
+ protocol.name: dubbo
|
|
|
|
+ protocol.port: 20880
|
|
|
|
+ protocol.host: 114.55.91.83
|
|
|
|
+ scan: cn.iselab.mooctest.site.rpc
|
|
|
|
+
|
|
|
|
+server:
|
|
|
|
+ port: 8088
|
|
|
|
+
|
|
|
|
+rpcServer:
|
|
|
|
+ port: 9100
|
|
|
|
+ group: iselab
|
|
|
|
+ zkAddress: 10.27.2.223:2181
|
|
|
|
+
|
|
|
|
+logging.config: classpath:log4j2.online.yaml
|
|
|
|
+logging.access.directory: /home/shared/log
|
|
|
|
+
|
|
|
|
+spring.jpa.show-sql: false
|
|
|
|
+
|
|
|
|
+cookie:
|
|
|
|
+ encryptionKey: helloiselab@2017
|
|
|
|
+ domain: .mooctest.net
|
|
|
|
+
|
|
|
|
+oss:
|
|
|
|
+ bucket: mooctest-site
|
|
|
|
+
|
|
|
|
+host: http://www.mooctest.net
|