From 4d3d726280a32dc82afa69d9622630f3d26523d2 Mon Sep 17 00:00:00 2001 From: "Kaz Saita(WSL2)" Date: Mon, 5 Feb 2024 20:40:07 +0900 Subject: [PATCH] commit(auto) --- .../20240205150537 Caddyをraspi4にインストール.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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