From 42b5d0bf5a51dba3c4cb5834576d3cb426772e9a Mon Sep 17 00:00:00 2001 From: ooheunda Date: Sat, 4 Apr 2026 04:49:49 +0900 Subject: [PATCH 1/3] =?UTF-8?q?chore:=20.env.prod=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.sample | 38 +++++++++++++++++++------------------- .gitignore | 1 + docker-compose.yml | 2 +- 3 files changed, 21 insertions(+), 20 deletions(-) diff --git a/.env.sample b/.env.sample index a7073a8..dfe14fe 100644 --- a/.env.sample +++ b/.env.sample @@ -1,37 +1,37 @@ PORT=8080 -ALLOWED_ORIGINS=http://localhost,http://localhost:3000,http://158.180.72.158,http://velog-dashboard.kro.kr,https://velog-dashboard.kro.kr,http://velog.io,https://velog.io -NODE_ENV="development" +ALLOWED_ORIGINS=http://localhost,http://localhost:3000 +NODE_ENV=development # 토큰 단방향 암호화 전용 핵심 키 -AES_KEY_0=13ccb93c17a8d6e49ba3c5d91e3a6f45 -AES_KEY_1=76e2a34bf23cd45876bc91e6a87d3f22 -AES_KEY_2=93a4d7e6b34ac8f1092fd5e87a93bc56 -AES_KEY_3=b87f6c34d92fa17e3b2a67e58c93fa56 -AES_KEY_4=27e3b8f67c4a12d8f93a6b17d4e58fa9 -AES_KEY_5=6b83c9e21a7d48fa3f9b27e45c8a6f12 -AES_KEY_6=81f92ab73c4e59d8a67f83b21d6e4c53 -AES_KEY_7=d87b61e9f34a2c85f19a7e53c6d8f21a -AES_KEY_8=7c58f92ae1d3b67a4c29f8b36e17d4f9 -AES_KEY_9=a93b4f7e2c6d81a7f5c3b2e89d47f612 +AES_KEY_0= +AES_KEY_1= +AES_KEY_2= +AES_KEY_3= +AES_KEY_4= +AES_KEY_5= +AES_KEY_6= +AES_KEY_7= +AES_KEY_8= +AES_KEY_9= # Database -DATABASE_NAME=vd2 -POSTGRES_USER=vd2 -POSTGRES_PASSWORD=vd2 +DATABASE_NAME=postgres +POSTGRES_USER= +POSTGRES_PASSWORD= POSTGRES_HOST=localhost POSTGRES_PORT=5432 # Cache (redis) REDIS_HOST=localhost REDIS_PORT=6379 -REDIS_PASSWORD=notion-check-plz +REDIS_PASSWORD= REDIS_DB=0 REDIS_KEY_PREFIX=vd2: CACHE_DEFAULT_TTL=300 # Slack Notification -SLACK_WEBHOOK_URL=https://hooks.slack.com/services +SLACK_WEBHOOK_URL= # Sentry Hook -SENTRY_CLIENT_SECRET=374708bedd34ae70f814471ff24db7dedc4b9bee06a7e8ef9255a4f6c8bd9049 # 실제 키를 사용하세요 -SENTRY_DSN=https://ingest.us.sentry.io \ No newline at end of file +SENTRY_CLIENT_SECRET= +SENTRY_DSN= \ No newline at end of file diff --git a/.gitignore b/.gitignore index b6fdb50..4b56141 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ SYSTEM_DESIGN.md # 환경 변수 및 인증 정보 .env +.env.prod .env.local .env.*.local diff --git a/docker-compose.yml b/docker-compose.yml index a83a957..45752c0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,7 +15,7 @@ services: volumes: - ./logs/api:/usr/src/app/logs env_file: - - .env + - .env.prod environment: NODE_ENV: production TZ: Asia/Seoul From 3695a5ed9c3719885a4d9b732b943a0d55a00778 Mon Sep 17 00:00:00 2001 From: ooheunda Date: Sat, 4 Apr 2026 05:26:51 +0900 Subject: [PATCH 2/3] =?UTF-8?q?modify:=20=EB=A6=AC=EB=8D=94=EB=B3=B4?= =?UTF-8?q?=EB=93=9C=20=ED=86=B5=ED=95=A9=ED=85=8C=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=ED=83=80=EC=9E=84=EC=95=84=EC=9B=83=2030=EC=B4=88->45=EC=B4=88?= =?UTF-8?q?=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../__test__/integration/leaderboard.repo.integration.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repositories/__test__/integration/leaderboard.repo.integration.test.ts b/src/repositories/__test__/integration/leaderboard.repo.integration.test.ts index b989b2b..524eb2a 100644 --- a/src/repositories/__test__/integration/leaderboard.repo.integration.test.ts +++ b/src/repositories/__test__/integration/leaderboard.repo.integration.test.ts @@ -12,7 +12,7 @@ import { PostLeaderboardSortType, UserLeaderboardSortType } from '@/types'; import { getKSTDateStringWithOffset } from '@/utils/date.util'; dotenv.config(); -jest.setTimeout(30000); // 각 케이스당 30초 타임아웃 설정 +jest.setTimeout(45000); // 각 케이스당 45초 타임아웃 설정 /** * LeaderboardRepository 통합 테스트 From bdee31148cbbc6687593e672a626bf928494f473 Mon Sep 17 00:00:00 2001 From: ooheunda Date: Sat, 4 Apr 2026 17:53:25 +0900 Subject: [PATCH 3/3] =?UTF-8?q?modify:=20=EB=A6=AC=EB=8D=94=EB=B3=B4?= =?UTF-8?q?=EB=93=9C=20=ED=86=B5=ED=95=A9=ED=85=8C=EC=8A=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=BC=80=EC=9D=B4=EC=8A=A4=20=EC=A0=9C=ED=95=9C=EC=8B=9C?= =?UTF-8?q?=EA=B0=84=20=EC=97=B0=EC=9E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../__test__/integration/leaderboard.repo.integration.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repositories/__test__/integration/leaderboard.repo.integration.test.ts b/src/repositories/__test__/integration/leaderboard.repo.integration.test.ts index 524eb2a..f5250b9 100644 --- a/src/repositories/__test__/integration/leaderboard.repo.integration.test.ts +++ b/src/repositories/__test__/integration/leaderboard.repo.integration.test.ts @@ -12,7 +12,7 @@ import { PostLeaderboardSortType, UserLeaderboardSortType } from '@/types'; import { getKSTDateStringWithOffset } from '@/utils/date.util'; dotenv.config(); -jest.setTimeout(45000); // 각 케이스당 45초 타임아웃 설정 +jest.setTimeout(60000); // 각 케이스당 60초 타임아웃 설정 /** * LeaderboardRepository 통합 테스트