facebook twitter hatena line email

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

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(ngrokのアカウントを作る)
(httpsアクセス)
 
(同じ利用者による、間の2版が非表示)
行15: 行15:
  
 
==localhost公開==
 
==localhost公開==
port: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/