commit(auto)

This commit is contained in:
Kaz Saita(WSL2) 2024-02-05 17:20:05 +09:00
parent aef152dff8
commit 8350c46a8d
2 changed files with 5 additions and 29 deletions

View file

@ -1,29 +0,0 @@
# 20240205150537 Caddyをraspi4にインストール
#raspi #caddy #web_server
[How to Setup a Raspberry Pi Caddy Web Server - Pi My Life Up](https://pimylifeup.com/raspberry-pi-caddy-web-server/) の方法が現在 20240205 は利用できない。
```sh
Err:4 https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ABA1F9B8875A6661
```
このgpgエラーは、鍵が公開されていないのか、解決不能。
仕方ないのでソースからビルド。
まずgoが必要。
[[20240205152229 raspi4にgoをインストールする|raspi4にgoをインストールする]]
caddyをビルド。
```sh
$ 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)

View file

@ -0,0 +1,5 @@
# 20240205164639 Caddyの設定
#caddy #web_server
[[20240205150537 Caddyをraspi4にインストール]] や、普通のPCその他にCaddyの環境がインストールされていることが前提。
とりあえず [Getting Started](https://caddyserver.com/docs/getting-started) を最後までやって、動いていることを確認。