Skip to content

Commit 7e1903f

Browse files
committed
add: prod config file
1 parent 966519d commit 7e1903f

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
server:
2+
port: ${APP_PORT}
3+
4+
spring:
5+
application:
6+
name: ${APP_NAME}
7+
datasource:
8+
driver-class-name: com.mysql.cj.jdbc.Driver
9+
url: jdbc:mysql://${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DATABASE}
10+
username: ${MYSQL_USER}
11+
password: ${MYSQL_PASSWORD}
12+
jpa:
13+
database-platform: org.hibernate.dialect.MySQLDialect
14+
show-sql: true
15+
properties:
16+
hibernate:
17+
format_sql: true
18+
hibernate:
19+
ddl-auto: validate
20+
h2:
21+
console:
22+
enabled: false
23+
flyway:
24+
enabled: true
25+
locations: classpath:db/migration
26+
validate-on-migrate: true
27+
28+
api:
29+
security:
30+
token:
31+
secret: ${JWT_SECRET:secret-key}
32+
33+
springdoc:
34+
api-docs:
35+
path: /api-docs
36+
swagger-ui:
37+
path: /swagger-ui.html
38+
39+
logging:
40+
level:
41+
root: INFO

0 commit comments

Comments
 (0)