Reverse Proxy With Caddy Web Server

After dealing with foibles of Nginx & Letsencrypt (acme.sh etc.) to proxy Subsonic and other services, I decided to experiment with Caddy https://caddyserver.com/, it was a revelation. This is the section of the 'Caddyfile' for reverse proxying Subsonic - that's all I need (Letsencrypt ceertificates are handled automatically).
- Code: Select all
subsonic.mydomain.com {
reverse_proxy http://127.0.0.1:4040
header {
# enable HSTS
Strict-Transport-Security max-age=31536000;
}
log {
output file /var/log/caddy/subsonic.log
format single_field common_log
level error
}
}