[Unit] Description=NextExpense — AI-Powered Expense Tracker Documentation=https://git.lohmar.co.uk/cclohmar/NextExpense After=network.target [Service] Type=simple User=nextexpense Group=nextexpense WorkingDirectory=/opt/nextexpense ExecStart=/opt/nextexpense/app Restart=always RestartSec=5 EnvironmentFile=-/opt/nextexpense/.env StandardOutput=append:/var/log/nextexpense.log StandardError=append:/var/log/nextexpense.log # Security hardening NoNewPrivileges=true PrivateTmp=true ProtectSystem=full ProtectHome=true [Install] WantedBy=multi-user.target