From 6e6f5915b424f6b63ec397129662cc1d3f4ff0ac Mon Sep 17 00:00:00 2001 From: ThinkKat Date: Thu, 26 Feb 2026 18:14:20 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20load-test=20=ED=94=84=EB=A1=9C=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=ED=99=98=EA=B2=BD=EB=B3=80=EC=88=98=20=EC=A3=BC?= =?UTF-8?q?=EC=9E=85=20=EC=A7=80=EC=9B=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit application-load-test.yml 하드코딩된 DB/JWT/API key 값을 환경변수로 대체. 로컬 개발 시 기존 기본값 fallback 유지. - DB_URL, DB_USERNAME, DB_PASSWORD, DB_DRIVER - JWT_SECRET, JWT_ACCESS_EXPIRATION, JWT_REFRESH_EXPIRATION - INTERNAL_API_KEY - LOG_PATH, LOG_NAME --- src/main/resources/application-load-test.yml | 32 ++++++++++++++------ 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/src/main/resources/application-load-test.yml b/src/main/resources/application-load-test.yml index a2bc340..41c6ee0 100644 --- a/src/main/resources/application-load-test.yml +++ b/src/main/resources/application-load-test.yml @@ -1,9 +1,9 @@ spring: datasource: - url: jdbc:postgresql://postgres:5432/opic_practice_loadtest - username: postgres - password: postgres - driver-class-name: org.postgresql.Driver + url: ${DB_URL:jdbc:postgresql://postgres:5432/opic_practice_loadtest} + username: ${DB_USERNAME:postgres} + password: ${DB_PASSWORD:postgres} + driver-class-name: ${DB_DRIVER:org.postgresql.Driver} hikari: maximum-pool-size: 10 minimum-idle: 2 @@ -18,17 +18,31 @@ logging: level: root: WARN me.thinkcat.opic: INFO + file: + path: ${LOG_PATH:/tmp/logs/was} + name: ${LOG_NAME:application} jwt: - secret: load-test-secret-key-this-must-be-at-least-256-bits-long-for-hmac-sha - access-expiration: 3600000 # 1시간 (테스트 중 만료 방지) - refresh-expiration: 86400000 + secret: ${JWT_SECRET:load-test-secret-key-this-must-be-at-least-256-bits-long-for-hmac-sha} + access-expiration: ${JWT_ACCESS_EXPIRATION:3600000} + refresh-expiration: ${JWT_REFRESH_EXPIRATION:86400000} internal: - api-key: load-test-key + api-key: ${INTERNAL_API_KEY:load-test-key} + +aws: + s3: + bucket: opic-practice-test + lambda: + session-feedback-function-name: opic-transcription-test + drill-answer-feedback-function-name: drill-transcription-test management: endpoints: web: exposure: - include: "health,metrics" + include: "health,prometheus" + metrics: + tags: + application: opic-practice + env: load-test