|
@@ -0,0 +1,170 @@
|
|
1
|
+# ===================================================================
|
|
2
|
+# Spring Boot configuration for the "dev" profile.
|
|
3
|
+#
|
|
4
|
+# This configuration overrides the application.yml file.
|
|
5
|
+#
|
|
6
|
+# More information on profiles: http://www.jhipster.tech/profiles/
|
|
7
|
+# More information on configuration properties: http://www.jhipster.tech/common-application-properties/
|
|
8
|
+# ===================================================================
|
|
9
|
+
|
|
10
|
+# ===================================================================
|
|
11
|
+# Standard Spring Boot properties.
|
|
12
|
+# Full reference is available at:
|
|
13
|
+# http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
|
|
14
|
+# ===================================================================
|
|
15
|
+
|
|
16
|
+logging:
|
|
17
|
+ level:
|
|
18
|
+ ROOT: DEBUG
|
|
19
|
+ com.edazone.msjhipster.msauth: DEBUG
|
|
20
|
+ io.github.jhipster: DEBUG
|
|
21
|
+
|
|
22
|
+eureka:
|
|
23
|
+ instance:
|
|
24
|
+ prefer-ip-address: true
|
|
25
|
+ client:
|
|
26
|
+ service-url:
|
|
27
|
+ defaultZone: http://admin:${jhipster.registry.password}@localhost:8761/eureka/
|
|
28
|
+
|
|
29
|
+spring:
|
|
30
|
+ profiles:
|
|
31
|
+ active: dev
|
|
32
|
+ include: swagger
|
|
33
|
+ devtools:
|
|
34
|
+ restart:
|
|
35
|
+ enabled: true
|
|
36
|
+ livereload:
|
|
37
|
+ enabled: false # we use gulp + BrowserSync for livereload
|
|
38
|
+ jackson:
|
|
39
|
+ serialization.indent_output: true
|
|
40
|
+ datasource:
|
|
41
|
+ type: com.zaxxer.hikari.HikariDataSource
|
|
42
|
+ url: jdbc:mysql://localhost:3306/msauth?useUnicode=true&characterEncoding=utf8&useSSL=false
|
|
43
|
+ username: root
|
|
44
|
+ password:
|
|
45
|
+ hikari:
|
|
46
|
+ data-source-properties:
|
|
47
|
+ cachePrepStmts: true
|
|
48
|
+ prepStmtCacheSize: 250
|
|
49
|
+ prepStmtCacheSqlLimit: 2048
|
|
50
|
+ useServerPrepStmts: true
|
|
51
|
+ jpa:
|
|
52
|
+ database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
|
|
53
|
+ database: MYSQL
|
|
54
|
+ show-sql: true
|
|
55
|
+ properties:
|
|
56
|
+ hibernate.id.new_generator_mappings: true
|
|
57
|
+ hibernate.cache.use_second_level_cache: true
|
|
58
|
+ hibernate.cache.use_query_cache: false
|
|
59
|
+ hibernate.generate_statistics: true
|
|
60
|
+ hibernate.cache.region.factory_class: io.github.jhipster.config.jcache.NoDefaultJCacheRegionFactory
|
|
61
|
+ mail:
|
|
62
|
+ host: localhost
|
|
63
|
+ port: 25
|
|
64
|
+ username:
|
|
65
|
+ password:
|
|
66
|
+ messages:
|
|
67
|
+ cache-seconds: 1
|
|
68
|
+ thymeleaf:
|
|
69
|
+ cache: false
|
|
70
|
+ zipkin: # Use the "zipkin" Maven profile to have the Spring Cloud Zipkin dependencies
|
|
71
|
+ base-url: http://localhost:9411
|
|
72
|
+ enabled: false
|
|
73
|
+ locator:
|
|
74
|
+ discovery:
|
|
75
|
+ enabled: true
|
|
76
|
+
|
|
77
|
+liquibase:
|
|
78
|
+ contexts: dev
|
|
79
|
+
|
|
80
|
+# ===================================================================
|
|
81
|
+# To enable SSL, generate a certificate using:
|
|
82
|
+# keytool -genkey -alias msauth -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650
|
|
83
|
+#
|
|
84
|
+# You can also use Let's Encrypt:
|
|
85
|
+# https://maximilian-boehm.com/hp2121/Create-a-Java-Keystore-JKS-from-Let-s-Encrypt-Certificates.htm
|
|
86
|
+#
|
|
87
|
+# Then, modify the server.ssl properties so your "server" configuration looks like:
|
|
88
|
+#
|
|
89
|
+# server:
|
|
90
|
+# port: 8443
|
|
91
|
+# ssl:
|
|
92
|
+# key-store: keystore.p12
|
|
93
|
+# key-store-password: <your-password>
|
|
94
|
+# key-store-type: PKCS12
|
|
95
|
+# key-alias: msauth
|
|
96
|
+# ===================================================================
|
|
97
|
+server:
|
|
98
|
+ port: 9999
|
|
99
|
+
|
|
100
|
+# ===================================================================
|
|
101
|
+# JHipster specific properties
|
|
102
|
+#
|
|
103
|
+# Full reference is available at: http://www.jhipster.tech/common-application-properties/
|
|
104
|
+# ===================================================================
|
|
105
|
+
|
|
106
|
+jhipster:
|
|
107
|
+ http:
|
|
108
|
+ version: V_1_1 # To use HTTP/2 you will need SSL support (see above the "server.ssl" configuration)
|
|
109
|
+ cache: # Cache configuration
|
|
110
|
+ ehcache: # Ehcache configuration
|
|
111
|
+ time-to-live-seconds: 3600 # By default objects stay 1 hour in the cache
|
|
112
|
+ max-entries: 100 # Number of objects in each cache entry
|
|
113
|
+ # CORS is only enabled by default with the "dev" profile, so BrowserSync can access the API
|
|
114
|
+ cors:
|
|
115
|
+ allowed-origins: "*"
|
|
116
|
+ allowed-methods: "*"
|
|
117
|
+ allowed-headers: "*"
|
|
118
|
+ exposed-headers: "Authorization,Link,X-Total-Count"
|
|
119
|
+ allow-credentials: true
|
|
120
|
+ max-age: 1800
|
|
121
|
+ security:
|
|
122
|
+ client-authorization:
|
|
123
|
+ client-id: internal
|
|
124
|
+ client-secret: internal
|
|
125
|
+ mail: # specific JHipster mail property, for standard properties see MailProperties
|
|
126
|
+ from: msauth@localhost
|
|
127
|
+ base-url: http://127.0.0.1:9999
|
|
128
|
+ metrics: # DropWizard Metrics configuration, used by MetricsConfiguration
|
|
129
|
+ jmx.enabled: true
|
|
130
|
+ graphite: # Use the "graphite" Maven profile to have the Graphite dependencies
|
|
131
|
+ enabled: false
|
|
132
|
+ host: localhost
|
|
133
|
+ port: 2003
|
|
134
|
+ prefix: msauth
|
|
135
|
+ prometheus: # Use the "prometheus" Maven profile to have the Prometheus dependencies
|
|
136
|
+ enabled: false
|
|
137
|
+ endpoint: /prometheusMetrics
|
|
138
|
+ logs: # Reports Dropwizard metrics in the logs
|
|
139
|
+ enabled: false
|
|
140
|
+ report-frequency: 60 # in seconds
|
|
141
|
+ logging:
|
|
142
|
+ logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
|
|
143
|
+ enabled: false
|
|
144
|
+ host: localhost
|
|
145
|
+ port: 5000
|
|
146
|
+ queue-size: 512
|
|
147
|
+
|
|
148
|
+uaa:
|
|
149
|
+ key-store:
|
|
150
|
+ name: keystore.jks
|
|
151
|
+ password: password
|
|
152
|
+ alias: selfsigned
|
|
153
|
+ web-client-configuration:
|
|
154
|
+ # Access Token is valid for 5 mins
|
|
155
|
+ access-token-validity-in-seconds: 300
|
|
156
|
+ # Refresh Token is valid for 7 days
|
|
157
|
+ refresh-token-validity-in-seconds-for-remember-me: 604800
|
|
158
|
+ client-id: web_app
|
|
159
|
+ secret: changeit
|
|
160
|
+
|
|
161
|
+# ===================================================================
|
|
162
|
+# Application specific properties
|
|
163
|
+# Add your own application properties here, see the ApplicationProperties class
|
|
164
|
+# to have type-safe configuration, like in the JHipsterProperties above
|
|
165
|
+#
|
|
166
|
+# More documentation is available at:
|
|
167
|
+# http://www.jhipster.tech/common-application-properties/
|
|
168
|
+# ===================================================================
|
|
169
|
+
|
|
170
|
+application:
|