This repository has been archived by the owner on Mar 5, 2018. It is now read-only.
forked from danielliao11/spring-microservice-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapplication.yml
98 lines (90 loc) · 4.96 KB
/
application.yml
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
# ===============================
# = CUSTOM
# ===============================
# You can generate your own RSA key pair with ssh-keygen,
# or get it in GenerateRSAKeyPair.
# Local key pair
local:
publickKey: MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvpO6M1Ghv4YeEeOFHB41FtzwDLB49ovrjfYU4+YvTvXvwL1AdVlJhKfp/MveMK8tzL5Prya11nsIQnyz/dVdiWhu7xqC6fE/xbWswEskBRa/QUvOFaKZS6ZRenGsst7YTQmiEWlhZwduDvCcPrz4pEusRg+GtETdbWqO3D0O+NF9bmkEGcKvHB1BHKv6Nj8PSL0Zt8h2fbZLWNSEYWPLCA+onhtGL7pAkpGQxAtZLJTYhrTw4oo7+bcSjha/2AHfnsCcMa65EoU1BSjD18bjG+AAE6JNURH5Nl2NgRL7wT4LH1/0vJpUnCxjkWWN46648k22ogciDSr73msJuAzp9wIDAQAB
privateKey: MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC+k7ozUaG/hh4R44UcHjUW3PAMsHj2i+uN9hTj5i9O9e/AvUB1WUmEp+n8y94wry3Mvk+vJrXWewhCfLP91V2JaG7vGoLp8T/FtazASyQFFr9BS84VoplLplF6cayy3thNCaIRaWFnB24O8Jw+vPikS6xGD4a0RN1tao7cPQ740X1uaQQZwq8cHUEcq/o2Pw9IvRm3yHZ9tktY1IRhY8sID6ieG0Y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GfLDFCyfVfWbEs/Q90Lu5wi9dmGwmY6sNaaVRdevE2toEZfmRMCU2+n0bVCUM3T9P4Jt0hS6eIFwSMMNSQv9djN6w6qWmspiyFh5MwKBgBUe9odIUmpCgQSny1VR0W2Okkn8KWmWVC/qksilIIMIOxT0v8d+/cs8P0k/uH4hIqyRuvuOqvR3p2myxKewczbt2bRfSCtgceVswMM8LacbkLuaIdWZtX4encyJVWgZXdzvSp011xwGCJ7t4KZ7G/VyLJwDLHRk7feROgqUUTsb
client.authorities: USER
# ===============================
# = HTTP/HTTPS
# ===============================
# You can comment above profile and uncomment line below to operate using https.
# You can generate your own keystore with keytool.
# And copy it to resources package.
# Finally modify the application-https.properties.
server.port: 8080
# Configure the server to run with SSL/TLS and using HTTPS
# port: 8443
# ssl:
# key-store: classpath:your_own_cert.jks.sample
# key-store-password: <your-ssl-keystore-password>
# key-password: <your-ssl-key-password>
# ===============================
# = LOGS
# ===============================
logging.file: data/logs/core.log
# ===============================
# = SPRING CONFIG
# ===============================
spring:
profiles:
active: dev
# Configure the server to run with SSL/TLS and using HTTPS
# active: https
# ===============================
# = DATA SOURCE
# ===============================
# If you want to use mysql, you could uncomment line below.
# And use the mysql dependency in the 'build.gradle'.
# Set here configurations for the database connection
datasource:
url: jdbc:postgresql://localhost/core?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull
username: core
password: core
tomcat:
initial-size: 10
max-idle: 60
min-idle: 10
max-active: 80
test-while-idle: true
validation-query: SELECT 1
test-on-borrow: false
time-between-eviction-runs-millis: 30000
min-evictable-idle-time-millis: 1800000
num-tests-per-eviction-run: 10
remove-abandoned: true
remove-abandoned-timeout: 180
# Keep the connection alive if idle for a long time (needed in production)
# ===============================
# = JPA / HIBERNATE
# ===============================
# Use 'spring.jpa.properties.*' for Hibernate native properties (the prefix is
# stripped before adding them to the entity manager).
# Show or not log for each sql query
jpa:
show-sql: true
# Hibernate ddl auto (create, create-drop, update): with "update" the database
# schema will be automatically updated accordingly to java entities found in
# the project
hibernate:
ddl-auto: update
naming:
implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl
properties:
hibernate:
format_sql: true
generate_statistics: true
# Mysql
# dialect: org.hibernate.dialect.MySQL5Dialect
dialect: org.hibernate.dialect.PostgreSQLDialect
# ===============================
# = SECURITY
# ===============================
security.oauth2.resource.filter-order: 3
# ===============================
# = SPRING BOOT ADMIN
# ===============================
management.security.enabled: false