Browse Source

ms1-config

ericisme 6 years ago
commit
30264d0643
1 changed files with 170 additions and 0 deletions
  1. 170 0
      ms1-dev.yml

+ 170 - 0
ms1-dev.yml

@@ -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.msj.ms1: 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/ms1?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: false
58
+            hibernate.cache.use_query_cache: false
59
+            hibernate.generate_statistics: true
60
+    mail:
61
+        host: localhost
62
+        port: 25
63
+        username:
64
+        password:
65
+    messages:
66
+        cache-seconds: 1
67
+    thymeleaf:
68
+        cache: false
69
+    zipkin: # Use the "zipkin" Maven profile to have the Spring Cloud Zipkin dependencies
70
+        base-url: http://localhost:9411
71
+        enabled: false
72
+        locator:
73
+            discovery:
74
+                enabled: true
75
+
76
+liquibase:
77
+    contexts: dev
78
+
79
+# ===================================================================
80
+# To enable SSL, generate a certificate using:
81
+# keytool -genkey -alias ms1 -storetype PKCS12 -keyalg RSA -keysize 2048 -keystore keystore.p12 -validity 3650
82
+#
83
+# You can also use Let's Encrypt:
84
+# https://maximilian-boehm.com/hp2121/Create-a-Java-Keystore-JKS-from-Let-s-Encrypt-Certificates.htm
85
+#
86
+# Then, modify the server.ssl properties so your "server" configuration looks like:
87
+#
88
+# server:
89
+#    port: 8443
90
+#    ssl:
91
+#        key-store: keystore.p12
92
+#        key-store-password: <your-password>
93
+#        key-store-type: PKCS12
94
+#        key-alias: ms1
95
+# ===================================================================
96
+server:
97
+    port: 8081
98
+
99
+# ===================================================================
100
+# JHipster specific properties
101
+#
102
+# Full reference is available at: http://www.jhipster.tech/common-application-properties/
103
+# ===================================================================
104
+
105
+jhipster:
106
+    http:
107
+        version: V_1_1 # To use HTTP/2 you will need SSL support (see above the "server.ssl" configuration)
108
+    # CORS is disabled by default on microservices, as you should access them through a gateway.
109
+    # If you want to enable it, please uncomment the configuration below.
110
+    # cors:
111
+        # allowed-origins: "*"
112
+        # allowed-methods: "*"
113
+        # allowed-headers: "*"
114
+        # exposed-headers: "Authorization,Link,X-Total-Count"
115
+        # allow-credentials: true
116
+        # max-age: 1800
117
+    security:
118
+        client-authorization:
119
+            access-token-uri: http://msauth/oauth/token
120
+            token-service-id: msauth
121
+            client-id: internal
122
+            client-secret: internal
123
+    mail: # specific JHipster mail property, for standard properties see MailProperties
124
+        from: ms1@localhost
125
+        base-url: http://127.0.0.1:8081
126
+    metrics: # DropWizard Metrics configuration, used by MetricsConfiguration
127
+        jmx.enabled: true
128
+        graphite: # Use the "graphite" Maven profile to have the Graphite dependencies
129
+            enabled: false
130
+            host: localhost
131
+            port: 2003
132
+            prefix: ms1
133
+        prometheus: # Use the "prometheus" Maven profile to have the Prometheus dependencies
134
+            enabled: false
135
+            endpoint: /prometheusMetrics
136
+        logs: # Reports Dropwizard metrics in the logs
137
+            enabled: false
138
+            report-frequency: 60 # in seconds
139
+    logging:
140
+        logstash: # Forward logs to logstash over a socket, used by LoggingConfiguration
141
+            enabled: false
142
+            host: localhost
143
+            port: 5000
144
+            queue-size: 512
145
+        spectator-metrics: # Reports Spectator Circuit Breaker metrics in the logs
146
+            enabled: false
147
+            # edit spring.metrics.export.delay-millis to set report frequency
148
+
149
+oauth2:
150
+    signature-verification:
151
+        public-key-endpoint-uri: http://msauth/oauth/token_key
152
+        #ttl for public keys to verify JWT tokens (in ms)
153
+        ttl: 3600000
154
+        #max. rate at which public keys will be fetched (in ms)
155
+        public-key-refresh-rate-limit: 10000
156
+    web-client-configuration:
157
+        #keep in sync with UAA configuration
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: