public_notes/content/20240205150537 Caddyをraspi4にインストール.md
2024-02-12 10:39:44 +09:00

1.1 KiB
Executable file

20240205150537 Caddyをraspi4にインストール

#raspi #caddy #web_server How to Setup a Raspberry Pi Caddy Web Server - Pi My Life Up の方法が現在 20240205 は利用できない。

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をインストールする

caddyをビルド。

$ sudo apt install git (インストールしてなければ)  
$ git clone --depth=1 https://github.com/caddyserver/caddy.git
$ cd caddy/cmd/caddy/
$ go build

cf. GitHub - caddyserver/caddy: Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS