diff --git a/content/20240211141946 Raspi4 Cloudflareでトンネルを作る.md b/content/20240211141946 Raspi4 Cloudflareでトンネルを作る.md index 1193e6e..efac94d 100644 --- a/content/20240211141946 Raspi4 Cloudflareでトンネルを作る.md +++ b/content/20240211141946 Raspi4 Cloudflareでトンネルを作る.md @@ -10,7 +10,7 @@ ## 前提 - ドメインを持っている - ネームサーバーをcloudflareに移管できる -- ブラウザでがんばってやろうとしたが挫折。 cliの方法を試す [Create a locally-managed tunnel (CLI) · Cloudflare Zero Trust docs](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/get-started/create-local-tunnel/) +- ブラウザでがんばってやろうとしたが挫折。 cliの方法を試す。つまり、 [Create a locally-managed tunnel (CLI) · Cloudflare Zero Trust docs](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/get-started/create-local-tunnel/) に書いてある内容を基本的にフォローする感じ ## cloudflareでアカウントを作る @@ -27,7 +27,6 @@ $ sudo dpkg -i coudflared-linux-amd64.deb sshのproxycommandとして使うので、wsl2(のubuntu) amd64/x86-64をダウンロードしてそちらにもインストールした。 ### 専用ユーザーを作成 -raspiで ``` $ sudo groupadd --system cloudflare @@ -78,5 +77,10 @@ Tunnel credentials written to /var/lib/cloudflare/.cloudflared/******.json. clou Created tunnel saipi4 with id ***** ``` -`*****` の所のtokenをメモしておく [[20240212183159 Cloudflare トンネルのtoken]] +`*****` の所のtokenをメモしておく [[20240212183159 Cloudflare トンネルのtoken|Cloudflare トンネルのtoken(private)]] +以上でトンネル作成の準備が完了。具体的な、何をトンネル経由でやりとりするか? の設定は、 +`~/.cloudflared/config.yaml` に書いていく。 +例は以下 +- [[20240211185359 Raspi4 Cloudflareでsshアクセスできるようにする|Raspi4 Cloudflareでsshアクセスできるようにする]] +- [[20240211202623 Raspi4 Cloudflare tunnel経由でhttpsサーバーを公開する|Raspi4 Cloudflare tunnel経由でhttpsサーバーを公開する]] \ No newline at end of file diff --git a/content/20240215215031 Raspi4にGiteaをインストール.md b/content/20240215215031 Raspi4にGiteaをインストール.md index ba5d276..985156e 100644 --- a/content/20240215215031 Raspi4にGiteaをインストール.md +++ b/content/20240215215031 Raspi4にGiteaをインストール.md @@ -187,6 +187,7 @@ $ sudo rm /var/lib/gitea/data/gitea.db 必要ならトンネルを追加。 +[[20240211141946 Raspi4 Cloudflareでトンネルを作る]] を参照。 ``` - hostname: gitea.kinoshita-lab.org service: http://localhost