From 890f6d9f4f288fa4982a4b37207f9af339fb0a61 Mon Sep 17 00:00:00 2001 From: JeonHaeseung <414catherine@gmail.com> Date: Wed, 29 May 2024 20:57:47 +0900 Subject: [PATCH 1/3] =?UTF-8?q?[!HOTFIX]=20=EC=97=90=EB=9F=AC=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=20=EC=A0=84=EC=86=A1=20=EC=8B=9C=20=ED=81=B4=EB=9D=BC?= =?UTF-8?q?=EC=9D=B4=EC=96=B8=ED=8A=B8=20IP=EB=8F=84=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Backend/infra/discord/DiscordMessageGenerator.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/Ness/Backend/infra/discord/DiscordMessageGenerator.java b/src/main/java/Ness/Backend/infra/discord/DiscordMessageGenerator.java index aa52677..935770d 100644 --- a/src/main/java/Ness/Backend/infra/discord/DiscordMessageGenerator.java +++ b/src/main/java/Ness/Backend/infra/discord/DiscordMessageGenerator.java @@ -33,6 +33,9 @@ public DiscordMessageDto createMessage(Exception exception, HttpServletRequest h + "### 🔗 요청 엔드포인트\n" + httpServletRequest.getRequestURI() + "\n" + + "### 🧐 요청 클라이언트 IP\n" + + getRemoteIp(httpServletRequest) + + "\n" + "### 🖥️ 에러 발생 서버\n" + activeProfile + "\n" @@ -51,4 +54,9 @@ private String getStackTrace(Exception exception) { exception.printStackTrace(new PrintWriter(stringWriter)); return stringWriter.toString(); } + + /* 클라이언트 요청 IP 알아내기 */ + private String getRemoteIp(HttpServletRequest httpServletRequest){ + return httpServletRequest.getRemoteAddr(); + } } From a288891d70333d5996dadf18b5415eca2cbdf28b Mon Sep 17 00:00:00 2001 From: JeonHaeseung <414catherine@gmail.com> Date: Wed, 29 May 2024 21:01:34 +0900 Subject: [PATCH 2/3] =?UTF-8?q?[!HOTFIX]=20=EC=84=A4=EC=A0=95=20=EA=B0=92?= =?UTF-8?q?=20EC2=EC=97=90=EB=8F=84=20=EC=A0=80=EC=9E=A5=20=EC=95=88?= =?UTF-8?q?=EB=90=98=EB=8F=84=EB=A1=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dev-deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/dev-deploy.yml b/.github/workflows/dev-deploy.yml index 1655d46..d58a8eb 100644 --- a/.github/workflows/dev-deploy.yml +++ b/.github/workflows/dev-deploy.yml @@ -84,6 +84,7 @@ jobs: uses: burnett01/rsync-deployments@4.1 with: switches: -avzr --delete + path: ./config remote_path: ./dev remote_host: ${{ secrets.HOST_DEV }} remote_user: ${{ secrets.USER_DEV }} From 9a6f96b7e41cf34ad535f80f2f985c86a9a50426 Mon Sep 17 00:00:00 2001 From: JeonHaeseung <414catherine@gmail.com> Date: Wed, 29 May 2024 21:08:23 +0900 Subject: [PATCH 3/3] =?UTF-8?q?[!HOTFIX]=20=ED=94=84=EB=A1=9C=EB=8D=95?= =?UTF-8?q?=EC=85=98=EC=97=90=EB=8F=84=20CICD=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/prod-deploy.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/prod-deploy.yml b/.github/workflows/prod-deploy.yml index 80d3054..ee3208e 100644 --- a/.github/workflows/prod-deploy.yml +++ b/.github/workflows/prod-deploy.yml @@ -89,6 +89,7 @@ jobs: uses: burnett01/rsync-deployments@4.1 with: switches: -avzr --delete + path: ./config remote_path: ./prod remote_host: ${{ secrets.HOST_PROD }} remote_user: ${{ secrets.USER_PROD }}