feat(M14): add deployment artifacts and secret check
Co-authored-by: Codex/gpt-5.6-terra <codex-gpt-5.6-terra@agents.invalid>
This commit is contained in:
23
deploy/systemd/pronote-sync.service
Normal file
23
deploy/systemd/pronote-sync.service
Normal file
@@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=Synchronisation Pronote vers CalDAV et XMPP
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=pronote-sync
|
||||
Group=pronote-sync
|
||||
WorkingDirectory=/var/lib/pronote-sync
|
||||
EnvironmentFile=/etc/pronote-sync/pronote-sync.env
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
StateDirectory=pronote-sync
|
||||
LogsDirectory=pronote-sync
|
||||
ExecStartPre=/opt/pronote-sync/.venv/bin/python /opt/pronote-sync/scripts/check_secrets.py
|
||||
ExecStart=/opt/pronote-sync/.venv/bin/pronote-sync
|
||||
StandardOutput=append:/var/log/pronote-sync/pronote-sync.log
|
||||
StandardError=append:/var/log/pronote-sync/pronote-sync.log
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectHome=true
|
||||
ProtectSystem=strict
|
||||
ReadWritePaths=/var/lib/pronote-sync /var/log/pronote-sync
|
||||
Reference in New Issue
Block a user