Recent Posts
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
관리 메뉴

개발자 박가나

[250204 TIL] 본캠프 85일차 (ngrok) 본문

내일배움캠프

[250204 TIL] 본캠프 85일차 (ngrok)

gnchoco97 2025. 2. 4. 20:41

로컬에서도 https로 동작하는 URL을 사용할 수 있게 해주는 ngrok에 대해서 알게 되어서 사용 방법을 기록해두고자 한다.

 

 

1. ngrok 사이트에 들어가서 로그인

https://ngrok.com/

 

ngrok | API Gateway, IoT Device Gateway, Secure Tunnels for Containers, Apps & APIs

ngrok is a secure ingress platform that enables developers to add global server load balancing, reverse proxy, firewall, API gateway and Kubernetes Ingress to applications and APIs.

ngrok.com

 

 

2. Your Authtoken 탭에 들어가서 token 값 복사

 

 

3. 터미널에 명령어 입력

ngrok config add-authtoken [YOUR_AUTHTOKEN]
npx ngrok http [PORT]

 

 

4. Next.js 프로젝트를 실행

 

 

5. 제공된 URL 접속