Services:Service Examples: Difference between revisions
Appearance
Minor update - troubleshooting guide: Service-Specific Examples (4 sections) |
Updated documentation from markdown files |
||
| Line 1: | Line 1: | ||
Caddy snippets for <code>/etc/caddy/Caddyfile</code>. After editing, run <code>caddy validate</code> and <code>systemctl reload caddy</code>. | |||
== | == MediaWiki (VPS Docker) == | ||
Already configured; reference: | |||
<pre> | |||
wiki.jb-vpn.uk { | |||
reverse_proxy http://127.0.0.1:8010 { | |||
header_up Host {host} | |||
header_up X-Real-IP {remote} | |||
header_up X-Forwarded-For {remote} | |||
header_up X-Forwarded-Proto {scheme} | |||
} | |||
} | |||
</pre> | |||
== Web application on VPS == | |||
<pre> | |||
app.jb-vpn.uk { | |||
reverse_proxy 127.0.0.1:8008 | |||
} | } | ||
</pre> | </pre> | ||
== | == API on VPS with path prefix == | ||
<pre> | |||
api.jb-vpn.uk { | |||
reverse_proxy http://127.0.0.1:3000 { | |||
header_up Host {host} | |||
header_up X-Forwarded-Proto {scheme} | |||
} | |||
} | |||
</pre> | |||
== Service on NAS (HTTP) == | |||
<pre> | |||
internal.jb-vpn.uk { | |||
reverse_proxy http://10.8.0.2:9000 { | |||
header_up Host {host} | |||
header_up X-Forwarded-Proto {scheme} | |||
} | |||
} | } | ||
</pre> | </pre> | ||
== | == Plex (NAS, custom headers) == | ||
See the <code>plex.jb-vpn.uk</code> block in <code>/etc/caddy/Caddyfile</code> for the full Plex header set. | |||
== DSM (NAS, HTTPS upstream) == | |||
< | See the <code>dsm.jb-vpn.uk</code> block in <code>/etc/caddy/Caddyfile</code> (<code>tls_insecure_skip_verify</code> on the upstream transport). | ||
== Static files on VPS == | |||
<pre> | |||
vps.jb-vpn.uk { | |||
root * /var/www/html | |||
file_server | |||
} | } | ||
</pre> | </pre> | ||
== Related | == Related documentation == | ||
* [Step By Step Step-by-Step Process] | |||
* [ | * [Configuration Options Configuration Options] | ||
[[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
Caddy snippets for /etc/caddy/Caddyfile. After editing, run caddy validate and systemctl reload caddy.
MediaWiki (VPS Docker)
[edit]Already configured; reference:
wiki.jb-vpn.uk {
reverse_proxy http://127.0.0.1:8010 {
header_up Host {host}
header_up X-Real-IP {remote}
header_up X-Forwarded-For {remote}
header_up X-Forwarded-Proto {scheme}
}
}
Web application on VPS
[edit]app.jb-vpn.uk {
reverse_proxy 127.0.0.1:8008
}
API on VPS with path prefix
[edit]api.jb-vpn.uk {
reverse_proxy http://127.0.0.1:3000 {
header_up Host {host}
header_up X-Forwarded-Proto {scheme}
}
}
Service on NAS (HTTP)
[edit]internal.jb-vpn.uk {
reverse_proxy http://10.8.0.2:9000 {
header_up Host {host}
header_up X-Forwarded-Proto {scheme}
}
}
Plex (NAS, custom headers)
[edit]See the plex.jb-vpn.uk block in /etc/caddy/Caddyfile for the full Plex header set.
DSM (NAS, HTTPS upstream)
[edit]See the dsm.jb-vpn.uk block in /etc/caddy/Caddyfile (tls_insecure_skip_verify on the upstream transport).
Static files on VPS
[edit]vps.jb-vpn.uk {
root * /var/www/html
file_server
}
Related documentation
[edit]- [Step By Step Step-by-Step Process]
- [Configuration Options Configuration Options]