0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【備忘録】ngrok(docker利用)でlocalhostを外部公開する

Posted at

やったこと

  • ngrokでポートを外部公開
  • docker 利用

ngrokとは

  • ローカルのポートを一次URL付与して外部公開できるようにしてくれる
  • 仕組みとしては、ngrokがホスティングして自PCに回してくれるトンネリングサービス

使い方

  • アカウント登録
  • 以下ページに記載の通りコンテナ持ってきてコマンド動かす

今回用いた経緯

  • API連携のローカル開発用に一次SSL化したくなった
  • viteなどの開発鯖は別途公開が必要

今後の課題

  • 複数ポートの公開方法
  • 適当に公開するとセキュリティに懸念
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?