public_notes/content/20240211202623 Raspi4 Cloudflare tunnel経由でhttpsサーバーを公開する.md
2024-02-12 19:20:09 +09:00

1.5 KiB
Executable file

20240211202623 Raspi4 Cloudflare tunnel経由でhttpsサーバーを公開する

#raspi #cloudflare #server

前提となる作業

あたりかな。

WEBサーバーの設定

作ったWEBサーバーをcloudflareのトンネルに登録

cloudflare@saipi4$ vim ~/.cloudflared/config/yaml

で、中身はこんな感じ。

url: https//localhost
tunnel: ******
credentials-file: /path/to/.cloudflared/******.json

**** の所はトンネルを作ったときの token. 20240212183159 cloudflare トンネルのtoken

cf.