SHA256
rewirite to new name
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user