2024年2月6日 星期二

Ngrok 舊版無法再使用,改用 V3版本

6年前就一直使用 ngrok 在 docker,昨天發現我的服務無法使用,測試 API程式發現沒有問題,最後 restart ngrok container發現訊息顯示版本太舊了,只能用新版的 ,官方文件有提供如何使用 docker 佈署指令Upgrading to ngrok Agent v3 的說明 

docker example (使用 docker ps 查看時可能看不到)

docker run -it -e NGROK_AUTHTOKEN=[your auth token] ngrok/ngrok:latest http https://localhost:5001 

 

基本上,使用免費版的每年都要更新一次新版本,可以在官網  version support policy上看到每個版本的資訊