Reverse Proxy With Caddy Web Server

Need help? Post your questions here.

Moderator: moderators

Reverse Proxy With Caddy Web Server

Postby LRanger » Wed May 20, 2020 11:58 pm

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
        }

}
LRanger
 
Posts: 42
Joined: Thu Mar 03, 2016 10:51 am

Return to Help

Who is online

Users browsing this forum: No registered users and 13 guests