System:Service Management: Difference between revisions
Appearance
Content added - troubleshooting guide: Service Management (19 sections) |
Updated documentation from markdown files |
||
| Line 1: | Line 1: | ||
This document describes how to manage services | This document describes how to manage edge proxy and related services on the VPS. | ||
== | == Caddy (public reverse proxy) == | ||
=== Status | === Status === | ||
<pre class="lang-bash"> | <pre class="lang-bash"> | ||
systemctl status | systemctl status caddy | ||
</pre> | </pre> | ||
=== | === Validate configuration === | ||
<pre class="lang-bash"> | <pre class="lang-bash"> | ||
caddy validate --config /etc/caddy/Caddyfile | |||
</pre> | </pre> | ||
=== | === Apply changes === | ||
<pre class="lang-bash"> | <pre class="lang-bash"> | ||
systemctl reload | systemctl reload caddy | ||
</pre> | </pre> | ||
=== | === Logs === | ||
<pre class="lang-bash"> | <pre class="lang-bash"> | ||
journalctl -u caddy -f | |||
journalctl -u caddy -n 100 --no-pager | |||
</pre> | </pre> | ||
== | === Backup Caddyfile === | ||
= | <pre class="lang-bash"> | ||
cp -a /etc/caddy/Caddyfile /root/backups/caddy/Caddyfile.$(date +%F) | |||
</pre> | |||
== MediaWiki stack == | |||
<pre class="lang-bash"> | |||
cd /var/www/wiki.jb | |||
docker compose ps | |||
docker compose logs -f wiki | |||
docker compose restart wiki werbs-wiki | |||
</pre> | |||
See [[Webapp:Deployment|Documentation:Wiki Deployment]]. | |||
== WebApp stack == | |||
See [[Webapp:Deployment|Webapp:Deployment]]. | |||
== OpenVPN == | |||
== | |||
<pre class="lang-bash"> | <pre class="lang-bash"> | ||
systemctl status openvpn-server@server | |||
ip addr show tun0 | |||
</pre> | </pre> | ||
== Maintenance == | == Maintenance checklist == | ||
* Confirm Caddy is active and config validates after hostname changes | |||
* Review <code>journalctl -u caddy</code> after incidents | |||
* Keep Docker images updated for wiki and WebApp stacks | |||
* Verify Let's Encrypt renewal (handled by Caddy; check logs if certificates near expiry) | |||
==== | |||
== Related documentation == | |||
* [Network Architecture Network Architecture] | |||
* [[Troubleshooting:Service Troubleshooting|Troubleshooting:Service Troubleshooting]] | |||
* [ | * [[Troubleshooting:Nginx Troubleshooting|Troubleshooting:Nginx Troubleshooting]] — legacy reference only | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Documentation/System]] | [[Category:Documentation/System]] | ||
Latest revision as of 14:04, 16 May 2026
This document describes how to manage edge proxy and related services on the VPS.
Caddy (public reverse proxy)
[edit]Status
[edit]systemctl status caddy
Validate configuration
[edit]caddy validate --config /etc/caddy/Caddyfile
Apply changes
[edit]systemctl reload caddy
Logs
[edit]journalctl -u caddy -f journalctl -u caddy -n 100 --no-pager
Backup Caddyfile
[edit]cp -a /etc/caddy/Caddyfile /root/backups/caddy/Caddyfile.$(date +%F)
MediaWiki stack
[edit]cd /var/www/wiki.jb docker compose ps docker compose logs -f wiki docker compose restart wiki werbs-wiki
See Documentation:Wiki Deployment.
WebApp stack
[edit]See Webapp:Deployment.
OpenVPN
[edit]systemctl status openvpn-server@server ip addr show tun0
Maintenance checklist
[edit]- Confirm Caddy is active and config validates after hostname changes
- Review
journalctl -u caddyafter incidents
- Keep Docker images updated for wiki and WebApp stacks
- Verify Let's Encrypt renewal (handled by Caddy; check logs if certificates near expiry)
Related documentation
[edit]- [Network Architecture Network Architecture]
- Troubleshooting:Nginx Troubleshooting — legacy reference only