sync notes(auto)

This commit is contained in:
kaz Saita@raspi4 2024-02-28 21:00:23 +09:00
parent 833bae81d4
commit baadf328a4
2 changed files with 8 additions and 3 deletions

View file

@ -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サーバーを公開する]]

View file

@ -187,6 +187,7 @@ $ sudo rm /var/lib/gitea/data/gitea.db
必要ならトンネルを追加。
[[20240211141946 Raspi4 Cloudflareでトンネルを作る]] を参照。
```
- hostname: gitea.kinoshita-lab.org
service: http://localhost