Install caddy first, with brew install caddy.
caddy
brew install caddy
run this command, in the directory where your files are.
caddy file-server --domain localhost.
caddy file-server --domain localhost
navigate over to localhost:443 to see your localhost with SSL.