Skip to content

Commit

Permalink
Merge pull request #106 from studio-recoding/dev
Browse files Browse the repository at this point in the history
[⚠️!HOTFIX] 클라이언트 요청 IP 확인 및 CICD에 중요한 파일 삭제
  • Loading branch information
JeonHaeseung authored May 29, 2024
2 parents 537992f + 9a6f96b commit 03a6bd7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ jobs:
uses: burnett01/[email protected]
with:
switches: -avzr --delete
path: ./config
remote_path: ./dev
remote_host: ${{ secrets.HOST_DEV }}
remote_user: ${{ secrets.USER_DEV }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ jobs:
uses: burnett01/[email protected]
with:
switches: -avzr --delete
path: ./config
remote_path: ./prod
remote_host: ${{ secrets.HOST_PROD }}
remote_user: ${{ secrets.USER_PROD }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public DiscordMessageDto createMessage(Exception exception, HttpServletRequest h
+ "### 🔗 요청 엔드포인트\n"
+ httpServletRequest.getRequestURI()
+ "\n"
+ "### 🧐 요청 클라이언트 IP\n"
+ getRemoteIp(httpServletRequest)
+ "\n"
+ "### 🖥️ 에러 발생 서버\n"
+ activeProfile
+ "\n"
Expand All @@ -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();
}
}

0 comments on commit 03a6bd7

Please sign in to comment.