전체 글

카테고리 없음
nodemailer 사용해서 메일 보내기
비밀번호 재설정 API를 구현하려고 한다. node.js에는 nodemailer라는 라이브러리가 있다. 현재 async, await 때문에 발생하는 오류 해결을 못했지만, 간단한 nodemailer 사용은 구현되어 정리. 먼저 공식 사이트에 있는 예시코드 // async..await is not allowed in global scope, must use a wrapper async function main() { // Generate test SMTP service account from ethereal.email // Only needed if you don't have a real mail account for testing let testAccount = await nodemailer.create..

Development/Server
[Server] MySQL 외부 접속 허용 (AWS)
1. EC2 보안그룹 - 인바운드 규칙 편집 2. mysql 설정 파일 편집 ▶ cd /etc/mysql/mysql.conf.d ▶ vi mysqld.cnf ▶ sudo service mysql restart 3. 권한 설정 4. Workbench나 Datagrip 통해 외부 접속하기 출처 https://luji.tistory.com/7 https://support.plesk.com/hc/en-us/articles/360005493133-Unable-to-register-remote-MySQL-server-in-Plesk-Host-is-not-allowed-to-connect-to-this-MySQL-server