facebook twitter hatena line email

「Mac/インストール/ngrok」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(localhost公開)
(localhost公開)
行17: 行17:
 
localhost:80の例
 
localhost:80の例
 
  ngrok http 80
 
  ngrok http 80
 +
 +
==httpsアクセス==
 +
<pre>
 +
https://hogehogexxxx.ngrok-free.dev/
 +
</pre>

2026年3月10日 (火) 08:06時点における版

ngrokとは

ローカルホストをhttpsで、公開できるツール。 エンジロックとよむ。

ngrokのアカウントを作る

https://ngrok.com/

ngrokインストール

brew install ngrok
ngrok config add-authtoken xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxx # アカウント内で表示されるコードを実行

localhost公開

localhost:80の例

ngrok http 80

httpsアクセス

https://hogehogexxxx.ngrok-free.dev/