diff --git a/article/article.yml b/article/article.yml index 8ba4305..1f2eb83 100644 --- a/article/article.yml +++ b/article/article.yml @@ -22,4 +22,35 @@ spring: servlet: multipart: max-file-size: 10MB - max-request-size: 10MB \ No newline at end of file + max-request-size: 10MB + security: + basic: + enabled: false + rabbitmq: + host: rabbitmq + port: 5672 + username: guest + password: guest + cloud: + bus: + enabled: true + refresh: + enabled: true + +management: + endpoints: + web: + exposure: + include: "*" + endpoint: + health: + show-details: always + security: + enabled: false # Spring Boot 2.0 이전용 + +logging: + level: + com.kitcha.article: DEBUG # 로그 레벨 설정 (DEBUG로 변경) + +app: + test-message: "Cloud Bus 테스트 - 업데이트됨 - 2025-03-30 21:00" diff --git a/auth/authentication.yml b/auth/authentication.yml index ed488e0..96f299c 100644 --- a/auth/authentication.yml +++ b/auth/authentication.yml @@ -8,6 +8,16 @@ spring: jpa: hibernate: ddl-auto: update + rabbitmq: + host: rabbitmq + port: 5672 + username: guest + password: guest + cloud: + bus: + enabled: true + refresh: + enabled: true server: port: 8091 @@ -19,4 +29,13 @@ eureka: register-with-eureka: true fetch-registry: true service-url: - defaultZone: http://eureka:8761/eureka/ \ No newline at end of file + defaultZone: http://eureka:8761/eureka/ + +management: + endpoints: + web: + exposure: + include: "*" + endpoint: + health: + show-details: always \ No newline at end of file diff --git a/board/board.properties b/board/board.properties deleted file mode 100644 index e9d275d..0000000 --- a/board/board.properties +++ /dev/null @@ -1,14 +0,0 @@ -# DB setting -spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver -spring.datasource.url=jdbc:mysql://mysql:3306/${MYSQL_DATABASE}?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Seoul -spring.datasource.username=${MYSQL_USER} -spring.datasource.password=${MYSQL_PASSWORD} -# JPA setting -spring.jpa.hibernate.ddl-auto=update -spring.jpa.show-sql=true -spring.jpa.database-platform=org.hibernate.dialect.MySQL8Dialect -# Eureka setting -eureka.instance.preferIpAddress=true -eureka.client.registerWithEureka=true -eureka.client.fetchRegistry=true -eureka.client.serviceUrl.defaultZone=http://eureka:8761/eureka/ diff --git a/board/board.yml b/board/board.yml new file mode 100644 index 0000000..527dc3c --- /dev/null +++ b/board/board.yml @@ -0,0 +1,36 @@ +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://kitchadb.cnqc2iqcsmsn.us-west-1.rds.amazonaws.com:3306/kitcha?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Seoul + username: kitcha + password: Corenova + jpa: + hibernate: + ddl-auto: update + show-sql: true + database-platform: org.hibernate.dialect.MySQL8Dialect + rabbitmq: + host: rabbitmq + port: 5672 + username: guest + password: guest + cloud: + bus: + enabled: true + refresh: + enabled: true + +eureka: + instance: + prefer-ip-address: true + client: + register-with-eureka: true + fetch-registry: true + service-url: + defaultZone: http://localhost:8761/eureka/ + +management: + endpoints: + web: + exposure: + include: refresh,health,info,busrefresh