Services:Prerequisites
Appearance
Before adding a new public hostname, gather the following.
Service information
- Hostname (e.g.
newservice.jb-vpn.uk)
- Backend location: VPS (
127.0.0.1:PORT) or NAS via VPN (10.8.0.2:PORT)
- Protocol: HTTP or HTTPS on the backend
DNS
- A record pointing the hostname to
87.106.61.62
- Propagation complete (verify with
digornslookup)
dig newservice.jb-vpn.uk +short
Backend health
VPS service:
curl -sI http://127.0.0.1:PORT | head -1
NAS service (requires active VPN):
ping -c 2 10.8.0.2 curl -sI -m 5 http://10.8.0.2:PORT | head -1
Wiki example:
curl -sI http://127.0.0.1:8010 | head -1 curl -sI https://wiki.jb-vpn.uk | head -1
System requirements
- Caddy running on the VPS (
systemctl status caddy)
- Ports 80/443 reachable from the internet (for Let's Encrypt)
- OpenVPN up (
ip addr show tun0) when the backend is on10.8.0.2
systemctl status caddy ip addr show tun0 ping -c 2 10.8.0.2
Related documentation
- [Step By Step Step-by-Step Process]