[TIL] 0427

IT/TIL(Today I Learnt)|2022. 4. 27. 21:11

 

 


Today I Learnt 

 

0427:

 

프런트 연결을 하려고 디버깅을 같이하는데 

오랜만에 항해할 때처럼 주고받고 하면서 재밌었다.

 

일단 제일 급했던거는 req.body가 안 들어오는 부분이었는데

header 부분을 변경하면서 쉽게 해결을 했다. (근데 거의 반나절 씀)

 

 

 

 

 

axios대신 fetch를 쓰는데 왜 fetch를 쓰는 걸까?

https://blog.logrocket.com/axios-vs-fetch-best-http-requests/

 

Axios vs. fetch(): Which is best for making HTTP requests? - LogRocket Blog

Axios is not always an ideal solution; depending on your needs, there are sometimes better options for making HTTP requests. The Fetch API is one of them.

blog.logrocket.com

https://blog.bitsrc.io/performing-http-requests-fetch-vs-axios-b62 b44 fed 10 d

 

Performing HTTP Requests: Fetch Vs Axios

Comparing the Fetch API and the Axios library

blog.bitsrc.io

딱히 크게 와다는 부분은 없는 것 같은데...

 

 

 

또 오늘은 오랜만에 에러 대잔치였는데...

먼 소린지 모르겠다.

 

 

https://dev.to/arunkc/solve-mongooseerror-operation-x-find-buffering-timed-out-after- 10000ms-3d3j

 

Solve "MongooseError: Operation 'x.find()` buffering timed out after 10000ms"

This error ate me out for at most 2 days. When I first saw this error I was like, Whhaaattt?? 😵 The c...

dev.to

mongodb connect. 할 때 문제인 것 같은데 일단 이걸로 당장 버그는 해결됐는데 또 나오진 않겠지...

 

 

- EC2에  pem key로 file zilla로 연결하는 게 보안 상안 좋다고 한다.

그럼 보통은 어떻게 업로드를 하나?

S3로 업로드를 하고 ec2안에서 cli로 다운로드를 하는 것 같다.

확실히 이 부분이 좀 더 안전하게 들리지만, pem key를 탈취당하지 않는 이상 괜찮은 거 아닐까? 

검색이 필요해 보이는 부분이다.

 

 
FTP was not built to be secure. It is generally considered to be an insecure protocol because it relies on clear-text usernames and passwords for authentication and does not use encryption. Data sent via FTP is vulnerable to sniffing, spoofing, and brute force attacks, among other basic attack methods

https://stackoverflow.com/questions/27359760/how-to-convert-ftp-server-to-secure-sftp-on-amazon-ec2

 

How to convert FTP server to secure SFTP on Amazon EC2

I have FTP server on Amazon EC2 which I can access by giving this URL: ftp.websitename.com:4522 after that username and password to accessing the files from this location. Now I want to convert into

stackoverflow.com

아니면  AWS transfer family서비스를 이용하면될것같다. 

반응형

'IT > TIL(Today I Learnt)' 카테고리의 다른 글

[TIL] 0502-0503  (5) 2022.05.03
[TIL] 0429  (0) 2022.04.29
[TIL] 0426  (4) 2022.04.27
[TIL] 0422  (4) 2022.04.22
[TIL] 0421  (3) 2022.04.22

댓글()