2020-09-23 07:27:01 +02:00
|
|
|
#/bin/bash
|
|
|
|
|
|
|
|
caddyVersion=2.1.1
|
|
|
|
sirtunnelVersion=0.1.0
|
|
|
|
|
2020-09-23 07:30:42 +02:00
|
|
|
echo Download Caddy
|
2020-09-23 07:27:01 +02:00
|
|
|
caddyGz=caddy_${caddyVersion}_linux_amd64.tar.gz
|
2020-09-23 07:30:42 +02:00
|
|
|
curl -s -O -L https://github.com/caddyserver/caddy/releases/download/v${caddyVersion}/${caddyGz}
|
|
|
|
tar xf ${caddyGz}
|
|
|
|
|
|
|
|
echo Clean up extra Caddy files
|
2020-09-23 07:27:01 +02:00
|
|
|
rm ${caddyGz}
|
|
|
|
rm LICENSE
|
|
|
|
rm README.md
|
|
|
|
|
2020-09-23 07:30:42 +02:00
|
|
|
echo Enable Caddy to bind low ports
|
2020-09-23 07:27:01 +02:00
|
|
|
sudo setcap 'cap_net_bind_service=+ep' caddy
|