Update Caddy Script to Include Options for Additional Modules #1571
Replies: 4 comments 2 replies
-
+1 after updating my installation I had to re-add a module and took a bit to figure out why Caddy wasn't starting. |
Beta Was this translation helpful? Give feedback.
-
Done for new Installs. For Older Installs - need to add manually. Go: cd /opt
set +o pipefail
GOLANG=$(curl -s https://go.dev/dl/ | grep -o "go.*\linux-amd64.tar.gz" | head -n 1)
wget -q https://golang.org/dl/$GOLANG
tar -xzf $GOLANG -C /usr/local
ln -s /usr/local/go/bin/go /usr/local/bin/go
set -o pipefail
rm -rf /opt/go* xCaddy: cd /opt
RELEASE=$(curl -s https://api.github.com/repos/caddyserver/xcaddy/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
wget -q https://github.com/caddyserver/xcaddy/releases/download/${RELEASE}/xcaddy_${RELEASE:1}_linux_amd64.deb
dpkg -i xcaddy_${RELEASE:1}_linux_amd64.deb
rm -rf /opt/xcaddy*
xcaddy build |
Beta Was this translation helpful? Give feedback.
-
Hey, doesn't seem like xcaddy is installing any modules on my end. Just for me? |
Beta Was this translation helpful? Give feedback.
-
sorry, maybe I did overlook some info. |
Beta Was this translation helpful? Give feedback.
-
Hi!
Some non-standard modules like
dns.providers.cloudflare
require xcaddy. It would be cool if modules like that could be chosen from the install script prompt. Maybe not every non-standard module, but maybe some that seem more commonly used than others?https://caddyserver.com/docs/modules/dns.providers.cloudflare
https://caddyserver.com/docs/modules/
Beta Was this translation helpful? Give feedback.
All reactions