From 78e8e2b80153b84c09ddba51bdd81fdfac06bb0a Mon Sep 17 00:00:00 2001 From: Gab <24553253+gabrix73@users.noreply.github.com> Date: Thu, 13 Feb 2025 17:59:34 +0100 Subject: Create nofuture.service --- nofuture.service | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 nofuture.service diff --git a/nofuture.service b/nofuture.service new file mode 100644 index 0000000..d49c36a --- /dev/null +++ b/nofuture.service @@ -0,0 +1,31 @@ +[Unit] +Description=Nofuture Memguard Post Quantum Encryption Service +After=network.target + +[Service] +Type=simple +User=www-data +Group=www-data +WorkingDirectory=/var/www/nofuture +ExecStart=/var/www/nofuture/nofuture +Restart=always +RestartSec=30 +Environment="GOPATH=/var/www/go" +Environment="GOBIN=/var/www/go/bin" +Environment="PATH=/usr/local/go/bin:/var/www/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" + +# Security hardening +ProtectSystem=strict +PrivateTmp=true +ProtectHome=tmpfs +PrivateDevices=true +NoNewPrivileges=true +CapabilityBoundingSet=CAP_NET_BIND_SERVICE + +# Logging +StandardOutput=syslog +StandardError=syslog +SyslogIdentifier=nofuture + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3