ericisme %!s(int64=6) %!d(string=hai) anos
pai
achega
4882c3cbdd
Modificáronse 3 ficheiros con 471 adicións e 0 borrados
  1. 170 0
      msauth-dev.yml
  2. 172 0
      msauth-prod.yml
  3. 129 0
      msauth.yml

+ 170 - 0
msauth-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.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:

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 172 - 0
msauth-prod.yml


+ 129 - 0
msauth.yml

@@ -0,0 +1,129 @@
1
+# ===================================================================
2
+# Spring Boot configuration.
3
+#
4
+# This configuration will be overridden by the Spring profile you use,
5
+# for example application-dev.yml if you use the "dev" profile.
6
+#
7
+# More information on profiles: http://www.jhipster.tech/profiles/
8
+# More information on configuration properties: http://www.jhipster.tech/common-application-properties/
9
+# ===================================================================
10
+
11
+# ===================================================================
12
+# Standard Spring Boot properties.
13
+# Full reference is available at:
14
+# http://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
15
+# ===================================================================
16
+
17
+eureka:
18
+    client:
19
+        enabled: true
20
+        healthcheck:
21
+            enabled: true
22
+        fetch-registry: true
23
+        register-with-eureka: true
24
+        instance-info-replication-interval-seconds: 10
25
+        registry-fetch-interval-seconds: 10
26
+    instance:
27
+        appname: msauth
28
+        instanceId: msauth:${spring.application.instance-id:${random.value}}
29
+        lease-renewal-interval-in-seconds: 5
30
+        lease-expiration-duration-in-seconds: 10
31
+        status-page-url-path: ${management.context-path}/info
32
+        health-check-url-path: ${management.context-path}/health
33
+        metadata-map:
34
+            zone: primary # This is needed for the load balancer
35
+            profile: ${spring.profiles.active}
36
+            version: ${info.project.version}
37
+ribbon:
38
+    eureka:
39
+        enabled: true
40
+management:
41
+    security:
42
+        roles: ADMIN
43
+    context-path: /management
44
+    info:
45
+        git:
46
+            mode: full
47
+    health:
48
+        mail:
49
+            enabled: false # When using the MailService, configure an SMTP server and set this to true
50
+spring:
51
+    application:
52
+        name: msauth
53
+    jackson:
54
+        serialization.write_dates_as_timestamps: false
55
+    jpa:
56
+        open-in-view: false
57
+        hibernate:
58
+            ddl-auto: none
59
+            naming:
60
+                physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
61
+                implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
62
+    messages:
63
+        basename: i18n/messages
64
+    mvc:
65
+        favicon:
66
+            enabled: false
67
+    thymeleaf:
68
+        mode: XHTML
69
+security:
70
+    basic:
71
+        enabled: false
72
+    oauth2:
73
+        resource:
74
+            filter-order: 3
75
+
76
+server:
77
+    session:
78
+        cookie:
79
+            http-only: true
80
+
81
+info:
82
+    project:
83
+        version: #project.version#
84
+
85
+# ===================================================================
86
+# JHipster specific properties
87
+#
88
+# Full reference is available at: http://www.jhipster.tech/common-application-properties/
89
+# ===================================================================
90
+
91
+jhipster:
92
+    async:
93
+        core-pool-size: 2
94
+        max-pool-size: 50
95
+        queue-capacity: 10000
96
+    # By default CORS is disabled. Uncomment to enable.
97
+    #cors:
98
+        #allowed-origins: "*"
99
+        #allowed-methods: "*"
100
+        #allowed-headers: "*"
101
+        #exposed-headers: "Authorization,Link,X-Total-Count"
102
+        #allow-credentials: true
103
+        #max-age: 1800
104
+    mail:
105
+        from: msauth@localhost
106
+    swagger:
107
+        default-include-pattern: /api/.*
108
+        title: msauth API
109
+        description: msauth API documentation
110
+        version: 0.0.1
111
+        terms-of-service-url:
112
+        contact-name:
113
+        contact-url:
114
+        contact-email:
115
+        license:
116
+        license-url:
117
+    ribbon:
118
+        display-on-active-profiles: dev
119
+
120
+# ===================================================================
121
+# Application specific properties
122
+# Add your own application properties here, see the ApplicationProperties class
123
+# to have type-safe configuration, like in the JHipsterProperties above
124
+#
125
+# More documentation is available at:
126
+# http://www.jhipster.tech/common-application-properties/
127
+# ===================================================================
128
+
129
+application: