diff --git a/content/20240204184839 raspi4 家サーバー 作業ログ.md b/content/20240204184839 raspi4 家サーバー 作業ログ.md index 4277e9b..6650138 100755 --- a/content/20240204184839 raspi4 家サーバー 作業ログ.md +++ b/content/20240204184839 raspi4 家サーバー 作業ログ.md @@ -42,4 +42,5 @@ $ sudo reboot (最新にしたので再起動) ``` ` ### WEBサーバーを入れる -[[20240205150537 Caddyをraspi4にインストール|Caddyをraspi4にインストール]] \ No newline at end of file +- [[20240205150537 Caddyをraspi4にインストール|Caddyをraspi4にインストール]] +- [[20240205164639 Caddyの設定|Caddyの設定]] diff --git a/content/20240205150537 Caddyをraspi4にインストール.md b/content/20240205150537 Caddyをraspi4にインストール.md index c7f2fad..30234e9 100755 --- a/content/20240205150537 Caddyをraspi4にインストール.md +++ b/content/20240205150537 Caddyをraspi4にインストール.md @@ -18,7 +18,12 @@ $ sudo apt install git (インストールしてなければ) $ git clone --depth=1 https://github.com/caddyserver/caddy.git $ cd caddy/cmd/caddy/ $ go build +$ cd ../../.. +$ sudo mv caddy /usr/local ``` +`/usr/local/caddy/cmd/caddy` +にパスを通す。 /etc/profileに追加。 + cf. [GitHub - caddyserver/caddy: Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS](https://github.com/caddyserver/caddy?tab=readme-ov-file#build-from-source) \ No newline at end of file