Here are the steps required in order to set up reverse proxy server on FreeBSD 13.0 using Tailscale as tunnel to local server, and Caddy acted as reverse proxy agent.
Please note that almost all the commands are performed under root access.
Install Tailscale on FreeBSD using this command:
pkg install tailscale
Then enable, start, and login to Tailscale network by entering this command:
service tailscaled enable
service tailscaled start
tailscale up
Install and enable Caddy using this command bellow:
pkg install caddy
service caddy enable
Edit Caddyfile
at /usr/local/etc/caddy/Caddyfile
:
sample here
https://forums.unraid.net/topic/98719-caddy-reverse-proxy/
Start Caddy:
service caddy start