-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapplication.yml
More file actions
123 lines (123 loc) · 2.55 KB
/
application.yml
File metadata and controls
123 lines (123 loc) · 2.55 KB
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
spring:
config:
import:
- "jwt.yml"
- "smtp.yml"
profiles:
active: dev
group:
dev:
- common
prod:
- common
rc:
- dev
- common
---
spring:
config:
activate:
on-profile: common
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
username: ${mysql_username}
password: ${mysql_password}
jpa:
database: mysql
database-platform: org.hibernate.dialect.MySQLDialect
open-in-view: false
hibernate:
ddl-auto: update
servlet:
multipart:
max-file-size: 5MB
max-request-size: 6MB
data:
redis:
host: localhost
port: 6379
output:
ansi:
enabled: always
mail:
host: ${smtp-host}
port: 587
username: ${smtp-username}
password: ${smtp-password}
properties:
mail:
smtp:
auth: true
starttls:
enable: true
cloud:
aws:
s3:
bucket: ${aws_bucket_name}
stack:
auto: false
region.static: ap-northeast-2
credentials:
access-key: ${aws_access_key}
secret-key: ${aws_secret_key}
logging:
config: classpath:logback-spring.xml
server:
port: 8080
---
spring:
config:
activate:
on-profile: dev
import:
- "mysql-dev.yml"
- "github-dev.yml"
- "aws-dev.yml"
datasource:
url: jdbc:mysql://${mysql_endpoint}:3306/algohub_${DEV_NAME}?useSSL=false&useUnicode=true&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true
jpa:
show-sql: true
properties:
hibernate:
format_sql: true
cloud:
aws:
s3:
path-style-access: true
---
spring:
config:
activate:
on-profile: prod
import:
- "mysql-prod.yml"
- "aws-prod.yml"
- "github-prod.yml"
- "webhook-prod.yml"
datasource:
url: jdbc:mysql://${mysql_endpoint}:3306/algohub?useSSL=false&useUnicode=true&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true
jpa:
show-sql: false
properties:
hibernate:
format_sql: false
logging:
discord:
webhook-url: ${webhook_url}
---
spring:
config:
activate:
on-profile: rc
import:
- "webhook-rc.yml"
- "github-rc.yml"
datasource:
url: jdbc:mysql://${mysql_endpoint}:3306/algohub_rc?useSSL=false&useUnicode=true&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true
data:
redis:
host: redis
port: 6379
logging:
discord:
webhook-url: ${webhook_url}