rewirite to new name

This commit is contained in:
2026-10-14 20:29:22 +02:00
parent 2120c56f45
commit 1cdb3fa784
23 changed files with 2521 additions and 5755 deletions
-44
View File
@@ -1,44 +0,0 @@
# 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:8085 (siehe Environment unten)
# hinter einem vertrauenswürdigen Reverse Proxy (nginx/caddy), der
# TLS terminiert.
[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
# Nur der SQLite-Ordner darf beschrieben werden; sonst ist das FS read-only.
ReadWritePaths=/srv/crushdb/instance
# Hardening: nur das nötigste erlauben
NoNewPrivileges=yes
PrivateTmp=yes
ProtectSystem=strict
ProtectHome=yes
ProtectKernelTunables=yes
ProtectControlGroups=yes
RestrictSUIDSGID=yes
CapabilityBoundingSet=
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target
+17
View File
@@ -0,0 +1,17 @@
[Unit]
Description=Who² contact directory
After=network.target
[Service]
Type=simple
User=www-data
Group=www-data
WorkingDirectory=/srv/serverjonas/who2
Environment=WHO2_DB_PATH=instance/who2.sqlite
Environment=FLASK_SECRET_KEY=replace-me-in-production
ExecStart=/usr/bin/python3 /srv/serverjonas/who2/run.py
Restart=on-failure
RestartSec=5
[Install]
WantedBy=multi-user.target