From b971d63e712fca346a5428c82096c9f38f0783d2 Mon Sep 17 00:00:00 2001 From: "Kaz Saita(raspi5)" Date: Tue, 9 Apr 2024 17:45:20 +0900 Subject: [PATCH] sync notes(auto) --- content/20240204184839 Raspi 4 5 サーバー 作業ログ.md | 4 ++-- ...作る.md => 20240211141946 Cloudflareでトンネルを作る.md} | 10 +++++++--- ...md => 20240211185359 Cloudflareでsshアクセスできるようにする.md} | 8 ++++---- ...4 Cloudflare tunnel経由でhttpsサーバーを公開する.md | 2 +- ...15215031 Raspi 4 5 にGitea Forgejoをインストール.md | 2 +- 5 files changed, 15 insertions(+), 11 deletions(-) rename content/{20240211141946 Raspi4 Cloudflareでトンネルを作る.md => 20240211141946 Cloudflareでトンネルを作る.md} (89%) rename content/{20240211185359 Raspi4 Cloudflareでsshアクセスできるようにする.md => 20240211185359 Cloudflareでsshアクセスできるようにする.md} (81%) diff --git a/content/20240204184839 Raspi 4 5 サーバー 作業ログ.md b/content/20240204184839 Raspi 4 5 サーバー 作業ログ.md index 00ea047..33c47dc 100644 --- a/content/20240204184839 Raspi 4 5 サーバー 作業ログ.md +++ b/content/20240204184839 Raspi 4 5 サーバー 作業ログ.md @@ -111,9 +111,9 @@ $ watch -n 1 vcgencmd measure_clock arm - Raspi5の場合(この通りやったらうごかなくなった注意) [Overclocking and \*Underclocking\* the Raspberry Pi 5 | Jeff Geerling](https://www.jeffgeerling.com/blog/2023/overclocking-and-underclocking-raspberry-pi-5) ### Raspi4 Cloudflareでトンネルを作る -- [[20240211141946 Raspi4 Cloudflareでトンネルを作る|Raspi4 Cloudflareでトンネルを作る]] +- [[20240211141946 Cloudflareでトンネルを作る|Raspi4 Cloudflareでトンネルを作る]] - [[20240211202623 Raspi4 Cloudflare tunnel経由でhttpsサーバーを公開する|Raspi4 Cloudflareでhttpsサーバーを公開する]] -- [[20240211185359 Raspi4 Cloudflareでsshアクセスできるようにする|Raspi4 Cloudflareでsshアクセスできるようにする]] +- [[20240211185359 Cloudflareでsshアクセスできるようにする|Raspi4 Cloudflareでsshアクセスできるようにする]] ### WEBサーバー - [[20240212183719 Raspi4でnginxを設定する|Raspi4でnginxを設定する]] ### Gitea/Forgejo diff --git a/content/20240211141946 Raspi4 Cloudflareでトンネルを作る.md b/content/20240211141946 Cloudflareでトンネルを作る.md similarity index 89% rename from content/20240211141946 Raspi4 Cloudflareでトンネルを作る.md rename to content/20240211141946 Cloudflareでトンネルを作る.md index 6db4138..ae7a16d 100644 --- a/content/20240211141946 Raspi4 Cloudflareでトンネルを作る.md +++ b/content/20240211141946 Cloudflareでトンネルを作る.md @@ -1,6 +1,9 @@ -# 20240211141946 Raspi 4 5 Cloudflareでトンネルを作る +# 20240211141946 Cloudflareでトンネルを作る #raspi4 #raspi5 #cloudflare #server +Raspberry Pi 4, 5, N100サーバーなどで実施。 + + ## 注意 色々なサイトを参考にしたけど、変化が激しいので100%参考になることは無かった。おそらくこのメモもすぐに陳腐化すると思う。私はこの分野の専門ではないので、全然わからないで適当にやっている。 @@ -19,7 +22,8 @@ ## cloudflaredをインストールする raspi4にcloudflaredをインストールする。 - [Downloads · Cloudflare Zero Trust docs](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/) から、 raspi4ならARM64をダウンロードしてインストール + [Downloads · Cloudflare Zero Trust docs](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/) から、 raspiならARM64をダウンロードしてインストール。intelでubuntuやdebianの場合 amd64 / x86-64 の方の.deb + ``` $ sudo dpkg -i coudflared-linux-amd64.deb ``` @@ -83,5 +87,5 @@ Created tunnel saipi4 with id ***** 以上でトンネル作成の準備が完了。具体的な、何をトンネル経由でやりとりするか? の設定は、 `~/.cloudflared/config.yaml` に書いていく。 例は以下 -- [[20240211185359 Raspi4 Cloudflareでsshアクセスできるようにする|Raspi4 Cloudflareでsshアクセスできるようにする]] +- [[20240211185359 Cloudflareでsshアクセスできるようにする|Raspi4 Cloudflareでsshアクセスできるようにする]] - [[20240211202623 Raspi4 Cloudflare tunnel経由でhttpsサーバーを公開する|Raspi4 Cloudflare tunnel経由でhttpsサーバーを公開する]] \ No newline at end of file diff --git a/content/20240211185359 Raspi4 Cloudflareでsshアクセスできるようにする.md b/content/20240211185359 Cloudflareでsshアクセスできるようにする.md similarity index 81% rename from content/20240211185359 Raspi4 Cloudflareでsshアクセスできるようにする.md rename to content/20240211185359 Cloudflareでsshアクセスできるようにする.md index e3f3c6c..c3832c5 100644 --- a/content/20240211185359 Raspi4 Cloudflareでsshアクセスできるようにする.md +++ b/content/20240211185359 Cloudflareでsshアクセスできるようにする.md @@ -1,11 +1,11 @@ -# 20240211185359 Raspi4 Cloudflareでsshアクセスできるようにする -#raspi #cloudflare #ssh +# 20240211185359 Cloudflareでsshアクセスできるようにする +#raspi #cloudflare #ssh #server ## 注意 -[[20240211141946 Raspi4 Cloudflareでトンネルを作る|Raspi4 Cloudflareでトンネルを作る]] と同じ。設定方法がどんどん変わる上、私はその専門ではない +[[20240211141946 Cloudflareでトンネルを作る|Raspi4 Cloudflareでトンネルを作る]] と同じ。設定方法がどんどん変わる上、私はその専門ではない ## 前提 -- [[20240211141946 Raspi4 Cloudflareでトンネルを作る|Raspi4 Cloudflareでトンネルを作る]] の作業が完了している +- [[20240211141946 Cloudflareでトンネルを作る|Raspi4 Cloudflareでトンネルを作る]] の作業が完了している - [[20240211202623 Raspi4 Cloudflare tunnel経由でhttpsサーバーを公開する|Raspi4 Cloudflare tunnel経由でhttpsサーバーを公開する]] の作業が完了している(ユーザー、サービスなどは作成してある) diff --git a/content/20240211202623 Raspi4 Cloudflare tunnel経由でhttpsサーバーを公開する.md b/content/20240211202623 Raspi4 Cloudflare tunnel経由でhttpsサーバーを公開する.md index d7d10c0..fe75dc6 100644 --- a/content/20240211202623 Raspi4 Cloudflare tunnel経由でhttpsサーバーを公開する.md +++ b/content/20240211202623 Raspi4 Cloudflare tunnel経由でhttpsサーバーを公開する.md @@ -2,7 +2,7 @@ #raspi #cloudflare #server ## 前提となる作業 -- [[20240211141946 Raspi4 Cloudflareでトンネルを作る|Raspi4 Cloudflareでトンネルを作る]] +- [[20240211141946 Cloudflareでトンネルを作る|Raspi4 Cloudflareでトンネルを作る]] - [[20240212183719 Raspi4でnginxを設定する|Raspi4でnginxを設定する]] diff --git a/content/20240215215031 Raspi 4 5 にGitea Forgejoをインストール.md b/content/20240215215031 Raspi 4 5 にGitea Forgejoをインストール.md index 752abc7..33fbc91 100644 --- a/content/20240215215031 Raspi 4 5 にGitea Forgejoをインストール.md +++ b/content/20240215215031 Raspi 4 5 にGitea Forgejoをインストール.md @@ -196,7 +196,7 @@ $ sudo rm /var/lib/gitea/data/gitea.db 必要ならトンネルを追加。 -[[20240211141946 Raspi4 Cloudflareでトンネルを作る]] を参照。 +[[20240211141946 Cloudflareでトンネルを作る]] を参照。 ``` - hostname: gitea.kinoshita-lab.org service: http://localhost