전체 글
-
Elastic Beanstalk에 도메인 연동과 SSLAWS/Elastic Beanstalk 2024. 8. 17. 21:16
먼저 도메인을 구입 해야한다. 찾아보니 도메인을 구매 해야 되는데 가장 저렴한곳이 가비아인것 같았다. 1. 도메인 구입가비아에 회원가입 한 후 원하는 도메인을 입력하고 나는 shop으로 끝나는 도메인을 구입했다.1년에 500밖에 하지 않는다. 2. SSL 연결을 위한 443 포트 인바운드 규칙 추가 VPC -> 보안그룹443 https 인바운드 규칙을 추가 해주자 3. AWS Certificate Manager SSL 인증서 연동인증서 요청 클릭퍼블릭 인증서 요청 -> 다음 도메인이 만약에naver.shop이면*.naver.shop 도 추가 해준다.서브 도메인들을 다 와일드카드로 추가 해준다는 뜻이다도메인만 등록 한 후 쭉 아래로 내려서 요청을 누른다.검증 요청 하는동안 Route 53 고고4. AWS ..
-
Redis사용을 위한 AWS ElastiCache 사용과 개발환경에서 docker 사용Redis 2024. 8. 16. 17:26
docker-compose-dev.ymlbackend: build: dockerfile: Dockerfile.dev context: ./backend container_name: social_backend volumes: - /app/node_modules - ./backend:/app env_file: - ./.env environment: POSTGRESQL_ROOT_PASSWORD: ${POSTGRESQL_ROOT_PASSWORD} POSTGRESQL_DATABASE: ${POSTGRESQL_DATABASE} POSTGRESQL_HOST: ${POSTGRESQL_HOST} POSTGRESQL_..
-
catch 할 수 없는 에러들을 slack 웹훅을 통해 slack 실시간 알림 보내기Nest.js 2024. 8. 16. 12:28
@slack/client deprecated가 되었다. @slack/webhook 라이브러리가 @slack/cleint와 비슷하고 유지보수도 잘 되고 있는것 같아 이것을 사용하기로 했다.$ npm i @slack/webhook main.tsall-exception.filter.ts피드 삭제시 TypeORM 에러가 발생 했을때 slack 아주 잘 동작한다!Reference- (https://velog.io/@inmyblue0930/Sentry-Slack-%EC%97%B0%EB%8F%99-%EC%8B%A4%EC%8B%9C%EA%B0%84-%EB%A1%9C%EA%B7%B8%EB%AA%A8%EB%8B%88%ED%84%B0%EB%A7%81)- ( https://www.npmjs.com/package/@slack/..
-
NestJS 꼭 알아야 되는 Exception filter 주의점Nest.js 2024. 8. 14. 17:31
NestJS 여러개의 exception filter와 모든 exception catch filter 사용시 주의할점에 대해서 알아보자.예시 Exception filter 종류BadRequestFilter : 400 bad request 를 catch 하는 filterServiceHttpExceptionFilter : service 에러 catch 하는 filterAllExceptionFilter : 모든 에러를 catch 하는 filter// exceptionapp.useGlobalFilters( new BadRequestServiceExceptionFilter() new ServiceHttpExceptionFilter(), new AllExceptionFilter(httpAdapterH..