[Unit] Description=CurrenciCombo webapp (Vite SPA served by nginx) Documentation=https://gitea.d-bis.org/d-bis/CurrenciCombo After=network-online.target Wants=network-online.target [Service] Type=simple User=currencicombo Group=currencicombo RuntimeDirectory=currencicombo-webapp RuntimeDirectoryMode=0755 ExecStart=/usr/sbin/nginx -c /etc/currencicombo/webapp-nginx.conf -g 'daemon off; pid /run/currencicombo-webapp/nginx.pid;' ExecReload=/usr/sbin/nginx -c /etc/currencicombo/webapp-nginx.conf -s reload Restart=on-failure RestartSec=5 StandardOutput=journal StandardError=journal SyslogIdentifier=currencicombo-webapp # Hardening NoNewPrivileges=yes PrivateTmp=yes ProtectSystem=strict ProtectHome=yes ReadWritePaths=/var/log/currencicombo /run/currencicombo-webapp ProtectKernelTunables=yes ProtectKernelModules=yes ProtectControlGroups=yes RestrictSUIDSGID=yes LockPersonality=yes [Install] WantedBy=multi-user.target