It runs fine on my local network, but when I try to access it remotely I get a warning that the connection isn’t secure and that I need to add an ssl certificate.
I have done some research and think that running caddy as a reverse proxy would be the best way to secure the connection.
What I am trying to do
As I mention I am new to Linux and installing and configuring Caddy as a reverse proxy is a bit beyond my skills at the moment …
I am looking for some kind person to guide me through this process.
Saying things like 'install Caddy then update the config file won’t be enough, I need to be told ‘run $sudo apt-get …’ then edit the config file by running to ‘sudo nano …’
If anyone would be happy to give me this kind of help I would be eternally grateful.
A really, really quick guide to get a proxy to AirSonic from… well, nothing:
Grab Caddy
Browse to Download Caddy, optionally configure extra plugins or specify telemetry, scroll down and copy the one-step installer script (bash). Run that command in your terminal on Linux.
Forward ports
Go to your router and make sure ports 80 and 443 are pointed at your Caddy host.
Note your AirSonic URL
While you’re tooling around with your internal network, note down the hostname (probably the IP address) and port of your AirSonic server when accessed internally.
Add DNS records
Go to your DNS provider and add records that point to your Caddy host’s external IP address.
Make a Caddyfile
A simple Caddyfile with Automatic HTTPS and a reverse proxy to AirSonic looks like this: (Replace “airsonic” with the hostname/IP that your AirSonic server listens on, and “:8080” with the appropriate port.)
yourdomain.example.com
proxy / airsonic:8080
Run Caddy
From the command line, just run caddy -conf /path/to/caddyfile, replacing the path as appropriate (I recommend you put your Caddyfile at /etc/caddyfile). If there’s any problems - Caddy will tell you what the issues are now. If there are no problems, Caddy will output the list of URLs and start waiting for connections (success!). In case of problems, paste output here.