commit(auto)
This commit is contained in:
parent
931b824320
commit
3994ca0242
3 changed files with 4 additions and 4 deletions
|
@ -78,5 +78,5 @@ Tunnel credentials written to /var/lib/cloudflare/.cloudflared/******.json. clou
|
||||||
|
|
||||||
Created tunnel saipi4 with id *****
|
Created tunnel saipi4 with id *****
|
||||||
```
|
```
|
||||||
`*****` の所のtokenをメモしておく [[20240212183159 cloudflare トンネルのtoken]]
|
`*****` の所のtokenをメモしておく [[20240212183159 Cloudflare トンネルのtoken]]
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ $ cloudflared tunnel route dns **** pi4.kinoshita-lab.org(ここは好きなや
|
||||||
2024-02-12T11:33:59Z INF Added CNAME pi4.kinoshita-lab.org which will route to this tunnel tunnelID=****
|
2024-02-12T11:33:59Z INF Added CNAME pi4.kinoshita-lab.org which will route to this tunnel tunnelID=****
|
||||||
```
|
```
|
||||||
|
|
||||||
\**** は [[20240212183159 cloudflare トンネルのtoken|cloudflare トンネルのtoken(private)]] を入れる。
|
\**** は [[20240212183159 Cloudflare トンネルのtoken|cloudflare トンネルのtoken(private)]] を入れる。
|
||||||
|
|
||||||
systemで動いているcloudflaredにsshの設定を変更。 httpとsshをhostnameで分けるようにする。
|
systemで動いているcloudflaredにsshの設定を変更。 httpとsshをhostnameで分けるようにする。
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
## WEBサーバーの設定
|
## WEBサーバーの設定
|
||||||
raspiのwebサーバーは80番(http)で動かして、cloudflareでhttps化してる。
|
raspiのwebサーバーは80番(http)で動かして、cloudflareでhttps化してる。
|
||||||
- [[20240212183719 raspi4でnginxを設定する|raspi4でnginxを設定する]] で、WEBサーバー(nginx)を動かしておく。
|
- [[20240212183719 Raspi4でnginxを設定する|raspi4でnginxを設定する]] で、WEBサーバー(nginx)を動かしておく。
|
||||||
- [[20240205150537 Caddyをraspi4にインストール|Caddyをraspi4にインストール]] で、Caddyを動かしてもよい。
|
- [[20240205150537 Caddyをraspi4にインストール|Caddyをraspi4にインストール]] で、Caddyを動かしてもよい。
|
||||||
|
|
||||||
## 作ったWEBサーバーをcloudflareのトンネルに登録
|
## 作ったWEBサーバーをcloudflareのトンネルに登録
|
||||||
|
@ -26,7 +26,7 @@ url: http://localhost
|
||||||
tunnel: ******
|
tunnel: ******
|
||||||
credentials-file: /var/lib/cloudflare/.cloudflared/******.json
|
credentials-file: /var/lib/cloudflare/.cloudflared/******.json
|
||||||
```
|
```
|
||||||
\**** の所はトンネルを作ったときの token(or UUID or TunnelID). [[20240212183159 cloudflare トンネルのtoken|cloudflare トンネルのtoken(private)]]
|
\**** の所はトンネルを作ったときの token(or UUID or TunnelID). [[20240212183159 Cloudflare トンネルのtoken|cloudflare トンネルのtoken(private)]]
|
||||||
|
|
||||||
```
|
```
|
||||||
cloudflare@saipi4:~ $ cloudflared tunnel route dns ***** notes.kinoshita-lab.org
|
cloudflare@saipi4:~ $ cloudflared tunnel route dns ***** notes.kinoshita-lab.org
|
||||||
|
|
Loading…
Reference in a new issue