diff --git a/content/20240205150537 Caddyをraspi4にインストール.md b/content/20240205150537 Caddyをraspi4にインストール.md index a065741..1b3857e 100755 --- a/content/20240205150537 Caddyをraspi4にインストール.md +++ b/content/20240205150537 Caddyをraspi4にインストール.md @@ -26,6 +26,16 @@ $ sudo mv caddy /usr/local `/usr/local/caddy/cmd/caddy` にパスを通す。 /etc/profileに追加。 +``` +$ sudo setcap cap_net_bind_service=+ep /usr/local/caddy/cmd/caddy/caddy +$ sudo visudo +``` + +`username ALL=(ALL:ALL) NOPASSWD: /usr/sbin/setcap` を追加。 + + 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 +[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) + +[caddyで簡単にhttpsサイト #http2 - Qiita](https://qiita.com/mmotoi/items/1af28e2e62a4e344eb6c) \ No newline at end of file