commit(auto)
This commit is contained in:
parent
aef152dff8
commit
8350c46a8d
2 changed files with 5 additions and 29 deletions
|
@ -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)
|
5
content/20240205164639 Caddyの設定.md
Executable file
5
content/20240205164639 Caddyの設定.md
Executable file
|
@ -0,0 +1,5 @@
|
|||
# 20240205164639 Caddyの設定
|
||||
#caddy #web_server
|
||||
[[20240205150537 Caddyをraspi4にインストール]] や、普通のPCその他にCaddyの環境がインストールされていることが前提。
|
||||
|
||||
とりあえず [Getting Started](https://caddyserver.com/docs/getting-started) を最後までやって、動いていることを確認。
|
Loading…
Reference in a new issue