「Mac/インストール/ngrok」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→localhost公開) |
(→httpsアクセス) |
||
| (同じ利用者による、間の1版が非表示) | |||
| 行17: | 行17: | ||
localhost:80の例 | localhost:80の例 | ||
ngrok http 80 | ngrok http 80 | ||
| + | |||
| + | ==httpsアクセス== | ||
| + | アカウント内のurlにアクセス。VisitSiteボタンを押す。 | ||
| + | <pre> | ||
| + | https://hogehogexxxx.ngrok-free.dev/ | ||
| + | </pre> | ||
2026年3月10日 (火) 08:07時点における最新版
ngrokとは
ローカルホストをhttpsで、公開できるツール。 エンジロックとよむ。
ngrokのアカウントを作る
https://ngrok.com/
ngrokインストール
brew install ngrok ngrok config add-authtoken xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxx # アカウント内で表示されるコードを実行
localhost公開
localhost:80の例
ngrok http 80
httpsアクセス
アカウント内のurlにアクセス。VisitSiteボタンを押す。
https://hogehogexxxx.ngrok-free.dev/
