-
Notifications
You must be signed in to change notification settings - Fork 12
/
application.properties
127 lines (102 loc) · 5.37 KB
/
application.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Allow externalization of properties using application-ext.properties
spring.profiles.active=ext
# Database Configuration - PostgreSQL
spring.datasource.url=jdbc:postgresql://localhost:5432/powerauth
spring.datasource.username=powerauth
spring.datasource.password=
spring.datasource.hikari.auto-commit=false
spring.datasource.hikari.pool-name=HikariPool-Push-Server
spring.jpa.properties.hibernate.connection.characterEncoding=utf8
spring.jpa.properties.hibernate.connection.useUnicode=true
# Database Configuration - Oracle
#spring.datasource.url=jdbc:oracle:thin:@//127.0.0.1:1521/powerauth
#spring.datasource.username=powerauth
#spring.datasource.password=
# The following property speeds up Spring Boot startup
#spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false
# Spring Batch Configuration
spring.batch.job.enabled=false
spring.batch.jdbc.initialize-schema=never
# Hibernate Configuration
spring.jpa.hibernate.ddl-auto=none
# PowerAuth Service Configuration
powerauth.service.url=http://localhost:8080/powerauth-java-server/rest
powerauth.service.restClientConfig.responseTimeout=60s
powerauth.service.restClientConfig.maxIdleTime=200s
powerauth.service.security.clientToken=
powerauth.service.security.clientSecret=
powerauth.service.ssl.acceptInvalidSslCertificate=false
# PowerAuth Push Service Configuration
powerauth.push.service.applicationName=powerauth-push
powerauth.push.service.applicationDisplayName=PowerAuth Push Server
powerauth.push.service.applicationEnvironment=
banner.application.name=${powerauth.push.service.applicationDisplayName}
banner.application.version=@project.version@
# PowerAuth Push Campaign Setup
powerauth.push.service.campaign.batchSize=100000
# Whether persistent storing of sent messages is enabled
powerauth.push.service.message.storage.enabled=false
# Whether push registration supports associated activations
powerauth.push.service.registration.multipleActivations.enabled=false
# Retry logic of creating a new device registration
powerauth.push.service.registration.retry.backoff=100
powerauth.push.service.registration.retry.maxAttempts=2
# APNs Configuration
powerauth.push.service.apns.useDevelopment=true
powerauth.push.service.apns.proxy.enabled=false
powerauth.push.service.apns.proxy.host=127.0.0.1
powerauth.push.service.apns.proxy.port=8080
powerauth.push.service.apns.proxy.username=
powerauth.push.service.apns.proxy.password=
# FCM Configuration
powerauth.push.service.fcm.proxy.enabled=false
powerauth.push.service.fcm.proxy.host=127.0.0.1
powerauth.push.service.fcm.proxy.port=8080
powerauth.push.service.fcm.proxy.username=
powerauth.push.service.fcm.proxy.password=
powerauth.push.service.fcm.dataNotificationOnly=false
powerauth.push.service.fcm.sendMessageUrl=https://fcm.googleapis.com/v1/projects/%s/messages:send
# HMS Configuration
powerauth.push.service.hms.proxy.enabled=false
powerauth.push.service.hms.proxy.host=127.0.0.1
powerauth.push.service.hms.proxy.port=8080
powerauth.push.service.hms.proxy.username=
powerauth.push.service.hms.proxy.password=
powerauth.push.service.hms.dataNotificationOnly=false
powerauth.push.service.hms.sendMessageUrl=https://push-api.cloud.huawei.com/v2/%s/messages:send
powerauth.push.service.hms.tokenUrl=https://oauth-login.cloud.huawei.com/oauth2/v3/token
# Set JMX default domain in case JMX is enabled, otherwise the application startup fails due to clash in JMX bean names
spring.jmx.default-domain=powerauth-push-server
# Push message gateway connect timeout in milliseconds
powerauth.push.service.fcm.connect.timeout=5000
powerauth.push.service.apns.connect.timeout=5000
powerauth.push.service.hms.connect.timeout=5s
powerauth.push.service.hms.response.timeout=60s
powerauth.push.service.hms.max-idle-time=200s
# Push message networking settings
powerauth.push.service.apns.idlePingInterval=60000
# Push message concurrency settings
powerauth.push.service.apns.concurrentConnections=1
# Java security CA certs file password
powerauth.push.java.cacerts.password=changeit
# Disable open session in view to avoid startup warning of Spring boot
spring.jpa.open-in-view=false
# Disable swagger-ui default petstore url
springdoc.swagger-ui.disable-swagger-default-url=true
# Disable internal logging for Netty due to noisy logging of native library loading
logging.level.io.netty.util.internal.NativeLibraryLoader=WARN
# Configure Correlation HTTP Header
powerauth.service.correlation-header.enabled=false
powerauth.service.correlation-header.name=X-Correlation-ID
powerauth.service.correlation-header.value.validation-regexp=[a-zA-Z0-9\\-]{8,1024}
# For logging correlation HTTP headers enable the pattern and update correlation header name in the pattern
#logging.pattern.console=%clr(%d{${LOG_DATEFORMAT_PATTERN:yyyy-MM-dd HH:mm:ss.SSS}}){faint} %clr(${LOG_LEVEL_PATTERN:%5p}) [%X{X-Correlation-ID}] %clr(%5p) %clr(${PID: }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:%wEx}
# Monitoring
management.tracing.sampling.probability=1.0
#management.endpoint.metrics.enabled=true
#management.endpoints.web.exposure.include=health, prometheus
#management.endpoint.prometheus.enabled=true
#management.prometheus.metrics.export.enabled=true
spring.autoconfigure.exclude=\
org.springframework.boot.autoconfigure.security.servlet.UserDetailsServiceAutoConfiguration,\
org.springframework.boot.actuate.autoconfigure.metrics.jersey.JerseyServerMetricsAutoConfiguration