一つのcurlでlocalhostを公開 — Portal Tunnel
Portal and Tunnel
We can create programs anywhere With AI.
AIを用いれば、どこでもプログラムを作成できます。
But no matter how great a program is, it usually lives only on your own computer — on localhost.
しかし、どれほど優れたプログラムであっても、通常は自身のコンピューター上、すなわちlocalhostでのみ動作します。
To expose it to the outside world, you normally have to go through complicated steps such as router configuration, firewall rules, public IP setup, and tunnel configuration. それを外部の世界に公開するためには、通常、ルーターの設定、ファイアウォール規則、パブリックIPの設定、およびトンネルの設定といった複雑な手順を経る必要があります。
What if all of this could be solved with a single line of command? もし、これらすべてがたった一行のコマンドで解決できるとしたらどうでしょうか。
With Portal’s tunnel, you can turn your local program into a public service with just one command. Portalのトンネルを使用すれば、ローカルプログラムをたった一つのコマンドでパブリックサービスに変えることができます。
Make localhost public
First, run your program locally.
まず、プログラムをローカルで実行します。
Then, this single line is all you need:
次に、この一行のコマンドだけが必要です。
1curl -fsSL portal.gosuda.org/tunnel | PORT=3000 NAME={app name} sh
- Check that your app is now publicly accessible:
- アプリケーションが現在パブリックにアクセス可能であることを確認します。
- {app name}.portal.gosuda.org
Multi-tenancy
Portal is designed as an open network, not a single service. Anyone can operate a portal relay, and a single app can be connected to multiple portals simultaneously for redundancy or geographic distribution. Portalは単一のサービスではなく、オープンなネットワークとして設計されています。誰でもポータルリレーを運用でき、単一のアプリケーションを冗長性や地理的分散のために複数のポータルに同時に接続することが可能です。
1# Publish to multiple portal relays at once
2# 複数のポータルリレーに一度に公開する
3curl -fsSL http://portal.gosuda.org/tunnel | \
4PORT=3000 \
5NAME={app_name} \
6RELAY_URL=portal.thumbgo.kr,portal.iwanhae.kr,s-h.day,portal.lmmt.eu.org \
7sh
A list of active public portals is maintained in the Portal List app (which is itself hosted on the Portal network): アクティブな公開ポータルのリストは、Portal Listアプリケーション(それ自体がPortalネットワーク上でホストされています)で維持されています。https://portal-list.portal.gosuda.org/
This represents a truly permissionless publishing environment that is not dependent on any specific provider or infrastructure. これは、特定のプロバイダーやインフラストラクチャに依存しない、真にパーミッションレスな公開環境を意味します。
Comparison with Other Services
Tools like ngrok and cloudflared are widely used to expose local services to the public internet. ngrokやcloudflaredのようなツールは、ローカルサービスをパブリックインターネットに公開するために広く使用されています。 However, Portal is fundamentally different in both design philosophy and usage model. しかし、Portalは設計思想と使用モデルの両方において根本的に異なります。
ngrok and cloudflared are centralized, SaaS-based tunneling services. ngrokとcloudflaredは、集中型のSaaSベースのトンネリングサービスです。 They require account creation, token issuance, binary installation, and configuration before use, and users are inevitably subject to service policies and pricing models. これらは使用前にアカウント作成、トークン発行、バイナリのインストール、および設定を必要とし、ユーザーは必然的にサービスのポリシーと料金モデルに従うことになります。
In contrast, Portal Tunnel: 対照的に、Portal Tunnelは以下の特徴を持ちます。
- Runs in one line without installation
- インストールなしで一行で実行されます
- Publishes instantly without accounts or tokens
- アカウントやトークンなしで即座に公開されます
- Allows anyone to operate a relay
- 誰でもリレーを運用することを許可します
- Lets a single app connect to multiple portals simultaneously
- 単一のアプリケーションを複数のポータルに同時に接続させます
- Is a pure network architecture without dependency on any specific vendor
- 特定のベンダーに依存しない純粋なネットワークアーキテクチャです
These characteristics place Portal Tunnel in a completely different category from traditional tunneling services.