Services:Prerequisites: Difference between revisions
Appearance
Added troubleshooting guide: Prerequisites for Adding Services |
Updated documentation from markdown files |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
Before adding a new public hostname, gather the following. | |||
== Service information == | |||
* '''Hostname''' (e.g. <code>newservice.jb-vpn.uk</code>) | |||
* '''Backend location''': VPS (<code>127.0.0.1:PORT</code>) or NAS via VPN (<code>10.8.0.2:PORT</code>) | |||
* '''Protocol''': HTTP or HTTPS on the backend | |||
= | == DNS == | ||
* '''A record''' pointing the hostname to <code>87.106.61.62</code> | |||
* Propagation complete (verify with <code>dig</code> or <code>nslookup</code>) | |||
<pre class="lang-bash"> | <pre class="lang-bash"> | ||
dig newservice.jb-vpn.uk +short | dig newservice.jb-vpn.uk +short | ||
</pre> | </pre> | ||
== | == Backend health == | ||
'''VPS service:''' | |||
<pre class="lang-bash"> | |||
curl -sI http://127.0.0.1:PORT | head -1 | |||
</pre> | |||
'''NAS service''' (requires active VPN): | |||
<pre class="lang-bash"> | <pre class="lang-bash"> | ||
ping -c 2 10.8.0.2 | |||
curl http://10.8.0.2: | curl -sI -m 5 http://10.8.0.2:PORT | head -1 | ||
</pre> | |||
'''Wiki example:''' | |||
= | <pre class="lang-bash"> | ||
curl -sI http://127.0.0.1:8010 | head -1 | |||
curl -sI https://wiki.jb-vpn.uk | head -1 | |||
</pre> | </pre> | ||
== System | == System requirements == | ||
* '''Caddy''' running on the VPS (<code>systemctl status caddy</code>) | |||
* '''Ports 80/443''' reachable from the internet (for Let's Encrypt) | |||
* '''OpenVPN''' up (<code>ip addr show tun0</code>) when the backend is on <code>10.8.0.2</code> | |||
<pre class="lang-bash"> | <pre class="lang-bash"> | ||
systemctl status caddy | |||
ping 10.8.0.2 | ip addr show tun0 | ||
ping -c 2 10.8.0.2 | |||
</pre> | |||
= | == Related documentation == | ||
* [Step By Step Step-by-Step Process] | |||
* [[System:Network Architecture]] | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Documentation/Services]] | [[Category:Documentation/Services]] | ||
[[Category:Documentation/Services/Adding Services]] | [[Category:Documentation/Services/Adding Services]] | ||
Latest revision as of 14:04, 16 May 2026
Before adding a new public hostname, gather the following.
Service information
[edit]- 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
[edit]- A record pointing the hostname to
87.106.61.62
- Propagation complete (verify with
digornslookup)
dig newservice.jb-vpn.uk +short
Backend health
[edit]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
[edit]- 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
[edit]- [Step By Step Step-by-Step Process]