浏览代码

production

kerry 5 年前
父节点
当前提交
d4f5417a28

+ 58 - 0
xxl-job-admin/config/application-production.properties 查看文件

@@ -0,0 +1,58 @@
1
+### web
2
+server.port=8080
3
+server.context-path=/xxl-job-admin
4
+
5
+### actuator
6
+management.context-path=/actuator
7
+management.health.mail.enabled=false
8
+
9
+### resources
10
+spring.mvc.servlet.load-on-startup=0
11
+spring.mvc.static-path-pattern=/static/**
12
+spring.resources.static-locations=classpath:/static/
13
+
14
+### freemarker
15
+spring.freemarker.templateLoaderPath=classpath:/templates/
16
+spring.freemarker.suffix=.ftl
17
+spring.freemarker.charset=UTF-8
18
+spring.freemarker.request-context-attribute=request
19
+spring.freemarker.settings.number_format=0.##########
20
+
21
+### mybatis
22
+mybatis.mapper-locations=classpath:/mybatis-mapper/*Mapper.xml
23
+
24
+### xxl-job, datasource
25
+spring.datasource.url=jdbc:mysql://192.168.10.31:6446/xxl_job?Unicode=true&useSSL=false&characterEncoding=UTF-8
26
+spring.datasource.username=xxl_job
27
+spring.datasource.password=E_wsq@163.com
28
+spring.datasource.driver-class-name=com.mysql.jdbc.Driver
29
+
30
+spring.datasource.type=org.apache.tomcat.jdbc.pool.DataSource
31
+spring.datasource.tomcat.max-wait=10000
32
+spring.datasource.tomcat.max-active=30
33
+spring.datasource.tomcat.test-on-borrow=true
34
+spring.datasource.tomcat.validation-query=SELECT 1
35
+spring.datasource.tomcat.validation-interval=30000
36
+
37
+### xxl-job email
38
+spring.mail.host=smtp.exmail.qq.com
39
+spring.mail.port=465
40
+spring.mail.username=system@vcarecity.com
41
+spring.mail.password=123Abc
42
+spring.mail.properties.mail.smtp.auth=true
43
+spring.mail.properties.mail.smtp.starttls.enable=true
44
+spring.mail.properties.mail.smtp.starttls.required=true
45
+spring.mail.properties.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
46
+
47
+### xxl-job, access token
48
+xxl.job.accessToken=
49
+
50
+### xxl-job, i18n (default empty as chinese, "en" as english)
51
+xxl.job.i18n=
52
+
53
+## xxl-job, triggerpool max size
54
+xxl.job.triggerpool.fast.max=200
55
+xxl.job.triggerpool.slow.max=100
56
+
57
+### xxl-job, log retention days
58
+xxl.job.logretentiondays=30

+ 1 - 0
xxl-job-admin/config/application.properties 查看文件

@@ -0,0 +1 @@
1
+spring.profiles.active=production

+ 2 - 2
xxl-job-admin/config/logback-my.xml 查看文件

@@ -9,9 +9,9 @@
9 9
     </appender>
10 10
 
11 11
     <appender name="LOGFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
12
-        <file>${LOG_HOME}/xxl-job/xxl-job-admin.log</file>
12
+        <file>${LOG_HOME}/application.log</file>
13 13
         <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
14
-            <fileNamePattern>${LOG_HOME}/xxl-job-admin.log.%d{yyyyMMdd}_%i</fileNamePattern>
14
+            <fileNamePattern>${LOG_HOME}/application.log.%d{yyyyMMdd}_%i</fileNamePattern>
15 15
             <maxHistory>5</maxHistory>
16 16
             <totalSizeCap>1GB</totalSizeCap>
17 17
             <maxFileSize>50MB</maxFileSize>

+ 58 - 0
xxl-job-admin/src/main/resources/application.properties 查看文件

@@ -0,0 +1,58 @@
1
+### web
2
+server.port=8080
3
+server.context-path=/xxl-job-admin
4
+
5
+### actuator
6
+management.context-path=/actuator
7
+management.health.mail.enabled=false
8
+
9
+### resources
10
+spring.mvc.servlet.load-on-startup=0
11
+spring.mvc.static-path-pattern=/static/**
12
+spring.resources.static-locations=classpath:/static/
13
+
14
+### freemarker
15
+spring.freemarker.templateLoaderPath=classpath:/templates/
16
+spring.freemarker.suffix=.ftl
17
+spring.freemarker.charset=UTF-8
18
+spring.freemarker.request-context-attribute=request
19
+spring.freemarker.settings.number_format=0.##########
20
+
21
+### mybatis
22
+mybatis.mapper-locations=classpath:/mybatis-mapper/*Mapper.xml
23
+
24
+### xxl-job, datasource
25
+spring.datasource.url=jdbc:mysql://192.168.10.210:6446/xxl_job?Unicode=true&useSSL=false&characterEncoding=UTF-8
26
+spring.datasource.username=xxl_job
27
+spring.datasource.password=E_wsq@163.com
28
+spring.datasource.driver-class-name=com.mysql.jdbc.Driver
29
+
30
+spring.datasource.type=org.apache.tomcat.jdbc.pool.DataSource
31
+spring.datasource.tomcat.max-wait=10000
32
+spring.datasource.tomcat.max-active=30
33
+spring.datasource.tomcat.test-on-borrow=true
34
+spring.datasource.tomcat.validation-query=SELECT 1
35
+spring.datasource.tomcat.validation-interval=30000
36
+
37
+### xxl-job email
38
+spring.mail.host=smtp.exmail.qq.com
39
+spring.mail.port=465
40
+spring.mail.username=xxx.11.com
41
+spring.mail.password=pass
42
+spring.mail.properties.mail.smtp.auth=true
43
+spring.mail.properties.mail.smtp.starttls.enable=true
44
+spring.mail.properties.mail.smtp.starttls.required=true
45
+spring.mail.properties.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory
46
+
47
+### xxl-job, access token
48
+xxl.job.accessToken=
49
+
50
+### xxl-job, i18n (default empty as chinese, "en" as english)
51
+xxl.job.i18n=
52
+
53
+## xxl-job, triggerpool max size
54
+xxl.job.triggerpool.fast.max=200
55
+xxl.job.triggerpool.slow.max=100
56
+
57
+### xxl-job, log retention days
58
+xxl.job.logretentiondays=30