Caddy is a HTTP/2 capable web server with automatic HTTPS.
Install the package or the binary AUR package.
Caddy is configured using a plain text file called
Caddyfile starts with address of the site to be served, and is followed by a number of directives.
Caddyfile hosting the site at
localhost:2020 using gzip compression and logging to
localhost:2020 gzip log ../access.log
A more comprehensive example that would get you an A+ rating on https://securityheaders.com is https://gist.github.com/Strykar/e5c0e32ef21f3d9f04eab3e42349f9d0
Caddy can be run by any user from the page's directory, and the
Caddyfile should be in the same directory:
Alternatively you may specify a custom
$ caddy -conf="../path/to/Caddyfile"