[Unit] Description=FSE3D FastAPI Service After=network.target [Service] Type=simple User=fse3d Group=fse3d WorkingDirectory=/home/fse3d Environment="PATH=/home/fse3d/.venv/bin" ExecStart=/home/fse3d/.venv/bin/uvicorn app.main:app --host 127.0.0.1 --port 8000 --workers 3 Restart=always RestartSec=5 UMask=0077 NoNewPrivileges=true PrivateTmp=true PrivateDevices=true ProtectSystem=strict ProtectHome=read-only ProtectKernelTunables=true ProtectKernelModules=true ProtectControlGroups=true RestrictSUIDSGID=true LockPersonality=true ReadWritePaths=/home/fse3d/tmp [Install] WantedBy=multi-user.target