From 86e2943fbb6fa97bd7292f81d2036b7a0f77d722 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Fri, 2 Jun 2017 15:12:46 +0300 Subject: [PATCH] Updated Caddy Webserver Config (markdown) --- Caddy-Webserver-Config.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Caddy-Webserver-Config.md b/Caddy-Webserver-Config.md index 1366789..b5629bb 100644 --- a/Caddy-Webserver-Config.md +++ b/Caddy-Webserver-Config.md @@ -44,11 +44,16 @@ example.com/files { } ``` -Install Caddy. Change username to what user you run caddy, like in /home/username: +Install Caddy. Change username to what user you run caddy, like in /home/username , and Let's Encrypt email to your email adderess: + ```bash # Install caddy with some plugins -curl https://getcaddy.com | bash -s ipfilter,ratelimit +curl https://getcaddy.com | bash -s http.ipfilter,http.mailout,http.ratelimit,http.realip +``` + # Give permissions to caddy to bind 80 and 443 + +``` sudo setcap cap_net_bind_service=+ep /usr/local/bin/caddy ```