From fd7690f8afe4fe504282a6b725407a82c6451370 Mon Sep 17 00:00:00 2001 From: Ryu Donghyeon Date: Sat, 29 Mar 2025 10:08:40 +0900 Subject: [PATCH 01/16] =?UTF-8?q?RabbitMQ=20cloudbus=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- board/board.properties | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/board/board.properties b/board/board.properties index e9d275d..910ff75 100644 --- a/board/board.properties +++ b/board/board.properties @@ -12,3 +12,16 @@ eureka.instance.preferIpAddress=true eureka.client.registerWithEureka=true eureka.client.fetchRegistry=true eureka.client.serviceUrl.defaultZone=http://eureka:8761/eureka/ + +# RabbitMQ 설정 +spring.rabbitmq.host=rabbitmq +spring.rabbitmq.port=5672 +spring.rabbitmq.username=guest +spring.rabbitmq.password=guest + +# Cloud Bus 설정 +spring.cloud.bus.enabled=true +spring.cloud.bus.refresh.enabled=true + +# Actuator 엔드포인트 설정 +management.endpoints.web.exposure.include=refresh,health,info,busrefresh From d07d8c404fc3c9dd38a3b128894a3ff1f20fc369 Mon Sep 17 00:00:00 2001 From: Ryu Donghyeon Date: Sat, 29 Mar 2025 10:46:02 +0900 Subject: [PATCH 02/16] =?UTF-8?q?feat:=20=EB=A1=9C=EA=B9=85=20=EB=A0=88?= =?UTF-8?q?=EB=B2=A8=20=EB=B3=80=EA=B2=BD=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- article/article.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/article/article.yml b/article/article.yml index 8ba4305..6f24f45 100644 --- a/article/article.yml +++ b/article/article.yml @@ -22,4 +22,8 @@ spring: servlet: multipart: max-file-size: 10MB - max-request-size: 10MB \ No newline at end of file + max-request-size: 10MB + +logging: + level: + com.kitcha.article: DEBUG # 원래 INFO였다면 DEBUG로 변경 \ No newline at end of file From 14f4c8a07b19ac5c774c4ed219cf49f96969d8fd Mon Sep 17 00:00:00 2001 From: Ryu Donghyeon Date: Sat, 29 Mar 2025 11:14:37 +0900 Subject: [PATCH 03/16] feat: cloudbus test --- article/article.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/article/article.yml b/article/article.yml index 6f24f45..fa03832 100644 --- a/article/article.yml +++ b/article/article.yml @@ -26,4 +26,7 @@ spring: logging: level: - com.kitcha.article: DEBUG # 원래 INFO였다면 DEBUG로 변경 \ No newline at end of file + com.kitcha.article: DEBUG # 원래 INFO였다면 DEBUG로 변경 + +app: + test-message: "Cloud Bus 테스트 성공 - 2025-03-29 12:00" \ No newline at end of file From ff40666ca21a0a59d952a635cfb8edcafe81d8c8 Mon Sep 17 00:00:00 2001 From: Ryu Donghyeon Date: Sat, 29 Mar 2025 11:43:06 +0900 Subject: [PATCH 04/16] feat: cloudbus test --- article/article.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/article/article.yml b/article/article.yml index fa03832..6f24f45 100644 --- a/article/article.yml +++ b/article/article.yml @@ -26,7 +26,4 @@ spring: logging: level: - com.kitcha.article: DEBUG # 원래 INFO였다면 DEBUG로 변경 - -app: - test-message: "Cloud Bus 테스트 성공 - 2025-03-29 12:00" \ No newline at end of file + com.kitcha.article: DEBUG # 원래 INFO였다면 DEBUG로 변경 \ No newline at end of file From 035c955044479bf65f67bc1f1d94ad5d0f92b34f Mon Sep 17 00:00:00 2001 From: Ryu Donghyeon Date: Sat, 29 Mar 2025 11:46:08 +0900 Subject: [PATCH 05/16] feat: cloudbus test --- article/article.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/article/article.yml b/article/article.yml index 6f24f45..6a22d6e 100644 --- a/article/article.yml +++ b/article/article.yml @@ -23,7 +23,34 @@ spring: multipart: max-file-size: 10MB 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 # 원래 INFO였다면 DEBUG로 변경 \ No newline at end of file + com.kitcha.article: DEBUG # 원래 INFO였다면 DEBUG로 변경 + +app: + test-message: "Cloud Bus 테스트 - 2025-03-29 15:30" \ No newline at end of file From a971d04c3421e4a1b6fc18cc9d97f2ad940c08eb Mon Sep 17 00:00:00 2001 From: Ryu Donghyeon Date: Sat, 29 Mar 2025 11:58:43 +0900 Subject: [PATCH 06/16] =?UTF-8?q?Cloud=20Bus=20=EB=B0=8F=20RabbitMQ=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20=EC=B6=94=EA=B0=80=20=EB=B0=8F=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auth/authentication.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) 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 From edc9da3e44e68c2f4f98e77fc47c154028d22dbd Mon Sep 17 00:00:00 2001 From: Ryu Donghyeon Date: Sun, 30 Mar 2025 17:21:12 +0900 Subject: [PATCH 07/16] Update test message for Cloud Bus test --- article/article.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/article/article.yml b/article/article.yml index 6a22d6e..4372e2c 100644 --- a/article/article.yml +++ b/article/article.yml @@ -50,7 +50,7 @@ management: logging: level: - com.kitcha.article: DEBUG # 원래 INFO였다면 DEBUG로 변경 + com.kitcha.article: DEBUG # 로그 레벨 설정 (DEBUG로 변경) app: - test-message: "Cloud Bus 테스트 - 2025-03-29 15:30" \ No newline at end of file + test-message: "Cloud Bus 테스트 - 2025-03-30 19:47" # 현재 시간으로 변경 \ No newline at end of file From 3f0b84d1512a4fe66c4deb15a2ba9215f3ee2aed Mon Sep 17 00:00:00 2001 From: Ryu Donghyeon Date: Sun, 30 Mar 2025 17:24:52 +0900 Subject: [PATCH 08/16] Update test message to current time --- article/article.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/article/article.yml b/article/article.yml index 4372e2c..baa4654 100644 --- a/article/article.yml +++ b/article/article.yml @@ -53,4 +53,4 @@ logging: com.kitcha.article: DEBUG # 로그 레벨 설정 (DEBUG로 변경) app: - test-message: "Cloud Bus 테스트 - 2025-03-30 19:47" # 현재 시간으로 변경 \ No newline at end of file + test-message: "Cloud Bus 테스트 - 2025-03-30 19:88" # 현재 시간으로 변경 \ No newline at end of file From 93898cf539dddd33f304e94569e7ccf91599b416 Mon Sep 17 00:00:00 2001 From: Ryu Donghyeon Date: Sun, 30 Mar 2025 17:25:40 +0900 Subject: [PATCH 09/16] Update test message to current time --- article/article.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/article/article.yml b/article/article.yml index baa4654..b180c74 100644 --- a/article/article.yml +++ b/article/article.yml @@ -53,4 +53,4 @@ logging: com.kitcha.article: DEBUG # 로그 레벨 설정 (DEBUG로 변경) app: - test-message: "Cloud Bus 테스트 - 2025-03-30 19:88" # 현재 시간으로 변경 \ No newline at end of file + test-message: "Cloud Bus 테스트 - 2025-03-30 19:77" # 현재 시간으로 변경 \ No newline at end of file From a1b10a5dc55f800c9d181dc9434338c7fa4b6d1f Mon Sep 17 00:00:00 2001 From: Ryu Donghyeon Date: Sun, 30 Mar 2025 17:33:31 +0900 Subject: [PATCH 10/16] Fix Cloud Bus configuration namespace --- article/article.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/article/article.yml b/article/article.yml index b180c74..5cc0a96 100644 --- a/article/article.yml +++ b/article/article.yml @@ -53,4 +53,4 @@ logging: com.kitcha.article: DEBUG # 로그 레벨 설정 (DEBUG로 변경) app: - test-message: "Cloud Bus 테스트 - 2025-03-30 19:77" # 현재 시간으로 변경 \ No newline at end of file + test-message: "Cloud Bus 테스트 - 2025-03-30 20:30" \ No newline at end of file From 42ed6794bb3f127c8e7af914e9afee44b9bfd270 Mon Sep 17 00:00:00 2001 From: Ryu Donghyeon <54935417+Ryu1216@users.noreply.github.com> Date: Mon, 31 Mar 2025 09:51:47 +0900 Subject: [PATCH 11/16] Update article.yml --- article/article.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/article/article.yml b/article/article.yml index 5cc0a96..b62be54 100644 --- a/article/article.yml +++ b/article/article.yml @@ -53,4 +53,4 @@ logging: com.kitcha.article: DEBUG # 로그 레벨 설정 (DEBUG로 변경) app: - test-message: "Cloud Bus 테스트 - 2025-03-30 20:30" \ No newline at end of file + test-message: "Cloud Bus 테스트 - 2025-03-30 20:77" From 20d80686b0c64b8138f01d99e3c880f4031fa51c Mon Sep 17 00:00:00 2001 From: Ryu Donghyeon <54935417+Ryu1216@users.noreply.github.com> Date: Mon, 31 Mar 2025 09:52:31 +0900 Subject: [PATCH 12/16] Update article.yml --- article/article.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/article/article.yml b/article/article.yml index b62be54..840e462 100644 --- a/article/article.yml +++ b/article/article.yml @@ -53,4 +53,4 @@ logging: com.kitcha.article: DEBUG # 로그 레벨 설정 (DEBUG로 변경) app: - test-message: "Cloud Bus 테스트 - 2025-03-30 20:77" + test-message: "Cloud Bus 테스트 - 2025-03-30 20:66" From 9366cc539950e604825614216225a03626a43625 Mon Sep 17 00:00:00 2001 From: Ryu Donghyeon Date: Mon, 31 Mar 2025 09:55:13 +0900 Subject: [PATCH 13/16] test --- article/article.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/article/article.yml b/article/article.yml index 5cc0a96..e2781f8 100644 --- a/article/article.yml +++ b/article/article.yml @@ -53,4 +53,4 @@ logging: com.kitcha.article: DEBUG # 로그 레벨 설정 (DEBUG로 변경) app: - test-message: "Cloud Bus 테스트 - 2025-03-30 20:30" \ No newline at end of file + test-message: "Cloud Bus 테스트 - 업데이트됨 - 2025-03-30 21:00" \ No newline at end of file From 153e39f153102f204bced5fb85dc0abad5432c64 Mon Sep 17 00:00:00 2001 From: binys21 <100662232+binys21@users.noreply.github.com> Date: Mon, 31 Mar 2025 14:55:46 +0900 Subject: [PATCH 14/16] Update and rename board.properties to board.yml --- board/board.properties | 27 --------------------------- board/board.yml | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 27 deletions(-) delete mode 100644 board/board.properties create mode 100644 board/board.yml diff --git a/board/board.properties b/board/board.properties deleted file mode 100644 index 910ff75..0000000 --- a/board/board.properties +++ /dev/null @@ -1,27 +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/ - -# RabbitMQ 설정 -spring.rabbitmq.host=rabbitmq -spring.rabbitmq.port=5672 -spring.rabbitmq.username=guest -spring.rabbitmq.password=guest - -# Cloud Bus 설정 -spring.cloud.bus.enabled=true -spring.cloud.bus.refresh.enabled=true - -# Actuator 엔드포인트 설정 -management.endpoints.web.exposure.include=refresh,health,info,busrefresh diff --git a/board/board.yml b/board/board.yml new file mode 100644 index 0000000..b2d1f10 --- /dev/null +++ b/board/board.yml @@ -0,0 +1,36 @@ +spring: + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://mysql:3306/kitchadb?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Seoul + username: kitcha + password: p@ssw0rd + 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://eureka:8761/eureka/ + +management: + endpoints: + web: + exposure: + include: refresh,health,info,busrefresh From fababd425384699f35b00b1c107c302bfe1224ed Mon Sep 17 00:00:00 2001 From: binys21 <100662232+binys21@users.noreply.github.com> Date: Mon, 31 Mar 2025 14:58:58 +0900 Subject: [PATCH 15/16] Update board.yml --- board/board.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/board.yml b/board/board.yml index b2d1f10..d006a63 100644 --- a/board/board.yml +++ b/board/board.yml @@ -1,9 +1,9 @@ spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://mysql:3306/kitchadb?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Seoul + url: jdbc:mysql://kitchadb.cnqc2iqcsmsn.us-west-1.rds.amazonaws.com:3306/kitcha?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Seoul username: kitcha - password: p@ssw0rd + password: Corenova jpa: hibernate: ddl-auto: update From 50b7c9fd2d739613a08aa7950735d2673d34f395 Mon Sep 17 00:00:00 2001 From: binys21 <100662232+binys21@users.noreply.github.com> Date: Mon, 31 Mar 2025 15:24:11 +0900 Subject: [PATCH 16/16] Update board.yml --- board/board.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/board.yml b/board/board.yml index d006a63..527dc3c 100644 --- a/board/board.yml +++ b/board/board.yml @@ -27,7 +27,7 @@ eureka: register-with-eureka: true fetch-registry: true service-url: - defaultZone: http://eureka:8761/eureka/ + defaultZone: http://localhost:8761/eureka/ management: endpoints: