travischambers / libbyreads-rs

Find which libraries have books available from your goodreads want-to-read shelf. A rust port (and upgrade!) of the original libbyreads.
1 stars 0 forks source link

fix caddy only 443 #11

Closed travischambers closed 1 week ago

travischambers commented 1 week ago

for some reason, caddy on my droplet isn't redirecting HTTP to HTTPS. unclear to me why caddy isn't listening on port 80.

travis@droplet-1:~$ sudo lsof -i :80 | grep LISTEN
travis@droplet-1:~$ sudo lsof -i :443 | grep LISTEN
caddy   6205 caddy    7u  IPv6  42417      0t0  TCP *:https (LISTEN)
travischambers commented 1 week ago

as a vestige of some past decision, i found i had this at the top of my /etc/caddy/Caddyfile.

{
    auto_https disable_redirects
}

removed it and Caddy works as expected.