Skip to content

Commit

Permalink
chore: fix build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
zeus6768 committed Oct 17, 2024
1 parent e6289e1 commit 40c39e6
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 3 deletions.
13 changes: 13 additions & 0 deletions backend/src/main/resources/application-actuator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
spring:
config:
activate:
on-profile: actuator

management:
endpoints:
web:
exposure:
include: health,info,metrics,prometheus
endpoint:
health:
show-details: always
3 changes: 3 additions & 0 deletions backend/src/main/resources/application-cors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cors:
allowed-origins: ${ALLOWED_ORIGINS}
allowed-origins-patterns: ${ALLOWED_ORIGINS_PATTERNS}
31 changes: 31 additions & 0 deletions backend/src/main/resources/application-db.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
spring:
config:
activate:
on-profile: db
datasource:
write:
jdbc-url: ${MYSQL_WRITER_URL}
username: ${MYSQL_USER}
password: ${MYSQL_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver
read:
jdbc-url: ${MYSQL_READER_URL}
username: ${MYSQL_USER}
password: ${MYSQL_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver
flyway:
enabled: true
baseline-on-migrate: true
baseline-version: 2
locations: classpath:db/migration
url: ${MYSQL_WRITER_URL}
username: ${MYSQL_USER}
password: ${MYSQL_PASSWORD}
jpa:
# open-in-view: false
hibernate:
ddl-auto: validate
properties:
hibernate:
dialect: codezap.template.repository.FullTextSearchMySQLDialect
data.web.pageable.one-indexed-parameters: true
3 changes: 3 additions & 0 deletions backend/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
spring:
config:
activate:
on-profile: local
output:
ansi:
enabled: always
Expand Down
8 changes: 8 additions & 0 deletions backend/src/main/resources/application-swagger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
springdoc:
default-consumes-media-type: application/json
default-produces-media-type: application/json
swagger-ui:
path: /swagger-ui.html
enabled: true
supportedSubmitMethods: get
display-request-duration: false
6 changes: 4 additions & 2 deletions backend/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
spring:
profiles:
active:
- local
group:
default: local
dev: db, actautor, swagger, cors
prod: db, actautor, swagger, cors
2 changes: 1 addition & 1 deletion backend/submodules/private

0 comments on commit 40c39e6

Please sign in to comment.