This commit is contained in:
parent
ab3a76cd0f
commit
56d8fb4d56
85 changed files with 8879 additions and 0 deletions
33
clio-infra/nixos/phone-recorder.service
Normal file
33
clio-infra/nixos/phone-recorder.service
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# Systemd service file for phone-recorder
|
||||
# Copy to /etc/systemd/system/phone-recorder.service
|
||||
# Then: systemctl daemon-reload && systemctl enable --now phone-recorder
|
||||
|
||||
[Unit]
|
||||
Description=Phone Recorder API Server
|
||||
After=network.target local-fs.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=thallock
|
||||
Group=thallock
|
||||
WorkingDirectory=/work/hosting/recordings
|
||||
|
||||
# Paths
|
||||
Environment="HOST=0.0.0.0"
|
||||
Environment="PORT=8000"
|
||||
Environment="BASE_DIR=/work/hosting/recordings"
|
||||
Environment="RECORDINGS_DIR=/media/external/Hosting/Recordings"
|
||||
Environment="DATABASE_PATH=/work/hosting/recordings/data/recordings.db"
|
||||
Environment="KEYS_DIR=/work/hosting/recordings/data/keys"
|
||||
|
||||
ExecStart=/home/thallock/.local/bin/uv run python main.py
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
|
||||
# Hardening
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Loading…
Add table
Add a link
Reference in a new issue