Files
crushdb/deploy/crushdb.service
T
jhkaktus 505b1839dd chore: default port 8085 (app + service unit), README aligned
User's proxy expects the upstream on port 8085; defaults are aligned
across run.py, the systemd unit and the docs.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
2026-10-11 00:11:19 +02:00

42 lines
985 B
Desktop File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# crushdb systemd unit
#
# Installieren (als root):
# cp deploy/crushdb.service /etc/systemd/system/
# systemctl daemon-reload
# systemctl enable --now crushdb
#
# Die App lauscht auf http://127.0.0.1:PORT (siehe Environment unten)
# und lebt für einen vertrauenswürdigen Reverse Proxy (nginx/caddy).
[Unit]
Description=crushdb – encrypted record database (Flask)
After=network.target
[Service]
Type=simple
# Pfade anpassen, wo dieses Repo liegt:
User=jonas
Group=jonas
WorkingDirectory=/srv/crushdb
ExecStart=/srv/crushdb/venv/bin/python /srv/crushdb/run.py
Environment=HOST=127.0.0.1
Environment=PORT=8085
Restart=on-failure
RestartSec=3
# Hardening: nur das nötigste erlauben
NoNewPrivileges=yes
PrivateTmp=yes
ProtectSystem=strict
ReadWritePaths=/srv/crushdb/instance
ProtectHome=yes
ProtectKernelTunables=yes
ProtectControlGroups=yes
RestrictSUIDSGID=yes
CapabilityBoundingSet=
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
[Install]
WantedBy=multi-user.target