https://github.com/caddyserver/caddy/releases
-
wget
the link you need (linux_amd64.tar.gz) and unpack the
zip file with - tar -xvzf caddy_version_os_arch.tar.gz
. -
Move the file over to /usr/local/bin
with
mv caddy /usr/local/bin/caddy
.A
level record with a TTL
to 1h
and set the data field to the IPv4 address you have configured.sudo iptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT
sudo apt-get install iptables-persistent
will allow
iptable rules to become persistent.sudo netfilter-persistent save
to have them persist.domain.com
respond "Hello, Https!"
caddyfile
domain.com
reverse_proxy 127.0.0.1:${PORT}